OSDN Git Service

The cvs version 1.103 of h264.c brokes 13 conformance streams, this
authorLoïc Le Loarer <lll+ffmpeg@m4x.org>
Sun, 27 Mar 2005 00:27:37 +0000 (00:27 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 27 Mar 2005 00:27:37 +0000 (00:27 +0000)
patch corrects this and decodes the same streams as version 1.102.
patch by (Loïc Le Loarer <lll+ffmpeg m4x org>)

Originally committed as revision 4087 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/h264.c

index 7bf419f..61ed7c5 100644 (file)
@@ -3762,7 +3762,7 @@ static int decode_slice_header(H264Context *h){
     else
         h->use_weight = 0;
     
-    if(s->current_picture.reference == 3)
+    if(s->current_picture.reference)
         decode_ref_pic_marking(h);
 
     if( h->slice_type != I_TYPE && h->slice_type != SI_TYPE && h->pps.cabac )