Commit fa9a47be authored by michael's avatar michael

Simplify cross_idr calculation.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14349 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4468306d
......@@ -7896,11 +7896,6 @@ static int decode_frame(AVCodecContext *avctx,
if(cur->reference == 0)
cur->reference = DELAYED_PIC_REF;
cross_idr = 0;
for(i=0; h->delayed_pic[i]; i++)
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]->poc; i++)
......@@ -7908,6 +7903,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];
out_of_order = !cross_idr && out->poc < h->outputed_poc;
......
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