Mercurial > libavcodec.hg
changeset 7358:2f9d5f6b8fff libavcodec
Simplify cross_idr calculation.
author | michael |
---|---|
date | Wed, 23 Jul 2008 14:37:15 +0000 |
parents | 5a743d9ad9bc |
children | 1980cae356ad |
files | h264.c |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/h264.c Wed Jul 23 12:21:56 2008 +0000 +++ b/h264.c Wed Jul 23 14:37:15 2008 +0000 @@ -7896,11 +7896,6 @@ 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 @@ 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;