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

michael subversion
Wed Jul 23 13:24:04 CEST 2008


Author: michael
Date: Wed Jul 23 13:24:04 2008
New Revision: 14347

Log:
Remove redundant keyframe checks.


Modified:
   trunk/libavcodec/h264.c

Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c	(original)
+++ trunk/libavcodec/h264.c	Wed Jul 23 13:24:04 2008
@@ -7754,7 +7754,7 @@ static int decode_frame(AVCodecContext *
 //FIXME factorize this with the output code below
         out = h->delayed_pic[0];
         out_idx = 0;
-        for(i=1; h->delayed_pic[i] && !h->delayed_pic[i]->key_frame && h->delayed_pic[i]->poc; i++)
+        for(i=1; h->delayed_pic[i] && h->delayed_pic[i]->poc; i++)
             if(h->delayed_pic[i]->poc < out->poc){
                 out = h->delayed_pic[i];
                 out_idx = i;
@@ -7898,12 +7898,12 @@ static int decode_frame(AVCodecContext *
 
             cross_idr = 0;
             for(i=0; h->delayed_pic[i]; i++)
-                if(h->delayed_pic[i]->key_frame || h->delayed_pic[i]->poc==0)
+                if(h->delayed_pic[i]->poc==0)
                     cross_idr = 1;
 
             out = h->delayed_pic[0];
             out_idx = 0;
-            for(i=1; h->delayed_pic[i] && !h->delayed_pic[i]->key_frame && h->delayed_pic[i]->poc; i++)
+            for(i=1; h->delayed_pic[i] && h->delayed_pic[i]->poc; i++)
                 if(h->delayed_pic[i]->poc < out->poc){
                     out = h->delayed_pic[i];
                     out_idx = i;




More information about the ffmpeg-cvslog mailing list