mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-24 15:57:00 +00:00
avcodec/h264_mb: assert that frame waiting code actually references 2 fields/1 frame
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
429de04320
commit
60e7d2d7b9
@ -176,6 +176,7 @@ static void await_references(const H264Context *h, H264SliceContext *sl)
|
|||||||
nrefs[list]--;
|
nrefs[list]--;
|
||||||
|
|
||||||
if (!FIELD_PICTURE(h) && ref_field_picture) { // frame referencing two fields
|
if (!FIELD_PICTURE(h) && ref_field_picture) { // frame referencing two fields
|
||||||
|
av_assert2((ref_pic->parent->reference & 3) == 3);
|
||||||
ff_thread_await_progress(&ref_pic->parent->tf,
|
ff_thread_await_progress(&ref_pic->parent->tf,
|
||||||
FFMIN((row >> 1) - !(row & 1),
|
FFMIN((row >> 1) - !(row & 1),
|
||||||
pic_height - 1),
|
pic_height - 1),
|
||||||
|
Loading…
Reference in New Issue
Block a user