100l cross_idr simplification had a typo
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 23 Jul 2008 14:59:55 +0000 (14:59 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 23 Jul 2008 14:59:55 +0000 (14:59 +0000)
Originally committed as revision 14351 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/h264.c

index 5aab7a8..0497624 100644 (file)
@@ -7887,7 +7887,7 @@ static int decode_frame(AVCodecContext *avctx,
                     out = h->delayed_pic[i];
                     out_idx = i;
                 }
-            cross_idr = !h->delayed_pic[0]->poc || !h->delayed_pic[i];
+            cross_idr = !h->delayed_pic[0]->poc || !!h->delayed_pic[i];
 
             out_of_order = !cross_idr && out->poc < h->outputed_poc;