diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-12-31 22:16:57 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-01-01 21:43:44 +0100 |
commit | 9ba43e50efa2483fb3ca1e3f62a474db7dd3ac8d (patch) | |
tree | 556e27bfbd797268f0e8981ba6fcaaf9cbbc81a6 /libavcodec/h264_refs.c | |
parent | fba6777363eb74d926aa0eed281a77ff152a3ad5 (diff) | |
download | ffmpeg-9ba43e50efa2483fb3ca1e3f62a474db7dd3ac8d.tar.gz |
h264: Fix frame sync / random access handling.
It seems I have misunderstood the spec when I implemented this
originally.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264_refs.c')
-rw-r--r-- | libavcodec/h264_refs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/h264_refs.c b/libavcodec/h264_refs.c index d030fec05f..8432a8a5b6 100644 --- a/libavcodec/h264_refs.c +++ b/libavcodec/h264_refs.c @@ -654,8 +654,7 @@ int ff_h264_execute_ref_pic_marking(H264Context *h, MMCO *mmco, int mmco_count){ print_long_term(h); if(err >= 0 && h->long_ref_count==0 && h->short_ref_count<=2 && h->pps.ref_count[0]<=1 + (s->picture_structure != PICT_FRAME) && s->current_picture_ptr->f.pict_type == AV_PICTURE_TYPE_I){ - h->sync |= 1; - s->current_picture_ptr->sync |= h->sync; + s->current_picture_ptr->sync |= 1; } return (h->s.avctx->err_recognition & AV_EF_EXPLODE) ? err : 0; |