Skip to content

Commit

Permalink
fix: robust h264/h265 parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
tympanix committed Jun 20, 2018
1 parent 24c5acb commit c04023b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions parse/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ package parse
import "github.com/tympanix/supper/meta/codec"

var codecMap = map[string]interface{}{
"HEVC": codec.HEVC,
"AVC": codec.AVC,
"[xh]265": codec.X265,
"[xh]264": codec.X264,
"XviD": codec.XviD,
"DivX": codec.DivX,
"WMV": codec.WMV,
"HEVC": codec.HEVC,
"AVC": codec.AVC,
"[xh].?265": codec.X265,
"[xh].?264": codec.X264,
"XviD": codec.XviD,
"DivX": codec.DivX,
"WMV": codec.WMV,
}

// Codecs is a list of parseable codecs
Expand Down

0 comments on commit c04023b

Please sign in to comment.