changeset 9180:6fdc4c276ef1 libavcodec

Fix SEIs when splitting H264 input. Patch by John Cox, jc A kynesim D co D uk
author cehoyos
date Mon, 16 Mar 2009 22:38:27 +0000
parents 4172c9ef331a
children 323e4f591d7a
files h264_parser.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/h264_parser.c	Mon Mar 16 16:11:27 2009 +0000
+++ b/h264_parser.c	Mon Mar 16 22:38:27 2009 +0000
@@ -70,7 +70,7 @@
             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;