[FFmpeg-cvslog] r14291 - trunk/libavcodec/h264.c

michael subversion
Sat Jul 19 05:13:11 CEST 2008


Author: michael
Date: Sat Jul 19 05:13:11 2008
New Revision: 14291

Log:
simplify


Modified:
   trunk/libavcodec/h264.c

Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c	(original)
+++ trunk/libavcodec/h264.c	Sat Jul 19 05:13:11 2008
@@ -7855,9 +7855,6 @@ static int decode_frame(AVCodecContext *
 
             out_of_order = !cross_idr && out->poc < h->outputed_poc;
 
-            if(pics <= s->avctx->has_b_frames || out_of_order)
-                out = NULL;
-
             if(h->sps.bitstream_restriction_flag && s->avctx->has_b_frames >= h->sps.num_reorder_frames)
                 { }
             else if((out_of_order && pics-1 == s->avctx->has_b_frames && pics < 15)
@@ -7867,9 +7864,11 @@ static int decode_frame(AVCodecContext *
             {
                 s->low_delay = 0;
                 s->avctx->has_b_frames++;
-                out= NULL;
             }
 
+            if(pics <= s->avctx->has_b_frames || out_of_order)
+                out = NULL;
+
             if(out_of_order || pics > s->avctx->has_b_frames){
                 for(i=out_idx; h->delayed_pic[i]; i++)
                     h->delayed_pic[i] = h->delayed_pic[i+1];




More information about the ffmpeg-cvslog mailing list