From e612199b72de8e7516e738b186d5744752059d28 Mon Sep 17 00:00:00 2001 From: Atsushi Watanabe Date: Fri, 6 Dec 2019 16:49:21 +0900 Subject: [PATCH] Separately define webm.Seek struct (#56) --- webm/webm.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/webm/webm.go b/webm/webm.go index 4e1e5d6..2e028c7 100644 --- a/webm/webm.go +++ b/webm/webm.go @@ -31,12 +31,15 @@ type EBMLHeader struct { DocTypeReadVersion uint64 `ebml:"EBMLDocTypeReadVersion"` } +// Seek represents Seek element struct +type Seek struct { + SeekID []byte `ebml:"SeekID"` + SeekPosition uint64 `ebml:"SeekPosition"` +} + // SeekHead represents SeekHead element struct type SeekHead struct { - Seek []struct { - SeekID []byte `ebml:"SeekID"` - SeekPosition uint64 `ebml:"SeekPosition"` - } `ebml:"Seek"` + Seek []Seek `ebml:"Seek"` } // Info represents Info element struct