Navigation Menu

Skip to content

Commit

Permalink
[ios/vtb] - allow 3byte NAL sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
Memphiz committed Sep 9, 2012
1 parent 2b12476 commit ddc01ea
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -1178,7 +1178,8 @@ bool CDVDVideoCodecVideoToolBox::Open(CDVDStreamInfo &hints, CDVDCodecOptions &o
}
else
{
if (extradata[0] == 0 && extradata[1] == 0 && extradata[2] == 0 && extradata[3] == 1)
if ( (extradata[0] == 0 && extradata[1] == 0 && extradata[2] == 0 && extradata[3] == 1) ||
(extradata[0] == 0 && extradata[1] == 0 && extradata[2] == 1))
{
// video content is from x264 or from bytestream h264 (AnnexB format)
// NAL reformating to bitstream format required
Expand Down

0 comments on commit ddc01ea

Please sign in to comment.