changeset 7356:e03fd655afe3 libavcodec

Remove redundant keyframe checks.
author michael
date Wed, 23 Jul 2008 11:24:04 +0000
parents 5719e2c85aa3
children 5a743d9ad9bc
files h264.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Wed Jul 23 06:21:27 2008 +0000
+++ b/h264.c	Wed Jul 23 11:24:04 2008 +0000
@@ -7754,7 +7754,7 @@
 //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 @@
 
             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;