Commit 96a1d23f authored by michael's avatar michael

Remove redundant keyframe checks.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14347 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e5c619ed
...@@ -7754,7 +7754,7 @@ static int decode_frame(AVCodecContext *avctx, ...@@ -7754,7 +7754,7 @@ static int decode_frame(AVCodecContext *avctx,
//FIXME factorize this with the output code below //FIXME factorize this with the output code below
out = h->delayed_pic[0]; out = h->delayed_pic[0];
out_idx = 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){ if(h->delayed_pic[i]->poc < out->poc){
out = h->delayed_pic[i]; out = h->delayed_pic[i];
out_idx = i; out_idx = i;
...@@ -7898,12 +7898,12 @@ static int decode_frame(AVCodecContext *avctx, ...@@ -7898,12 +7898,12 @@ static int decode_frame(AVCodecContext *avctx,
cross_idr = 0; cross_idr = 0;
for(i=0; h->delayed_pic[i]; i++) 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; cross_idr = 1;
out = h->delayed_pic[0]; out = h->delayed_pic[0];
out_idx = 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){ if(h->delayed_pic[i]->poc < out->poc){
out = h->delayed_pic[i]; out = h->delayed_pic[i];
out_idx = i; out_idx = i;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment