]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Fix SEIs when splitting H264 input.
authorcehoyos <cehoyos@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Mon, 16 Mar 2009 22:38:27 +0000 (22:38 +0000)
committercehoyos <cehoyos@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Mon, 16 Mar 2009 22:38:27 +0000 (22:38 +0000)
Patch by John Cox, jc A kynesim D co D uk

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18020 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavcodec/h264_parser.c

index 39433bb2e9565c89b5ccf6403b4a4f298fb58a84..5f0c68c7870117d9905545c437d8eadd9921d85a 100644 (file)
@@ -70,7 +70,7 @@ int ff_h264_find_frame_end(H264Context *h, const uint8_t *buf, int buf_size)
             else            state>>=1; //2->1, 1->0, 0->0
         }else if(state<=5){
             int v= buf[i] & 0x1F;
-            if(v==7 || v==8 || v==9){
+            if(v==6 || v==7 || v==8 || v==9){
                 if(pc->frame_start_found){
                     i++;
                     goto found;