Mercurial > libavcodec.hg
changeset 7325:af725308adf4 libavcodec
Take the brain amputated spec literally if the user asks for it (-strict 1).
That is, add 16 frames delay, cache trashing and av desync.
fixes at least the following reference bitstreams:
CABA3_Sony_C.jsv
CACQP3_Sony_D.jsv
CAMANL1_TOSHIBA_B.264
CANL3_Sony_C.jsv
CVBS3_Sony_C.jsv
CVMANL1_TOSHIBA_B.264
author | michael |
---|---|
date | Sat, 19 Jul 2008 16:16:00 +0000 |
parents | 3f49e04bcbe1 |
children | fe8a7f5905e4 |
files | h264.c |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/h264.c Sat Jul 19 15:57:06 2008 +0000 +++ b/h264.c Sat Jul 19 16:16:00 2008 +0000 @@ -7836,6 +7836,12 @@ s->low_delay = 0; } + if( s->avctx->strict_std_compliance >= FF_COMPLIANCE_STRICT + && !h->sps.bitstream_restriction_flag){ + s->avctx->has_b_frames= MAX_DELAYED_PIC_COUNT; + s->low_delay= 0; + } + pics = 0; while(h->delayed_pic[pics]) pics++;