summaryrefslogtreecommitdiff
path: root/libavcodec/h264_mb.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-04-04 18:31:00 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-04-04 18:34:36 +0200
commit60e7d2d7b9eb55b65f6cae3135dc71c75777f03f (patch)
treea773f15722b223e2922d792855d53c263787c73a /libavcodec/h264_mb.c
parent429de043202286a2b5bcc082cc02de860b734db2 (diff)
avcodec/h264_mb: assert that frame waiting code actually references 2 fields/1 frame
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264_mb.c')
-rw-r--r--libavcodec/h264_mb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h264_mb.c b/libavcodec/h264_mb.c
index 9036919a07..634d814493 100644
--- a/libavcodec/h264_mb.c
+++ b/libavcodec/h264_mb.c
@@ -176,6 +176,7 @@ static void await_references(const H264Context *h, H264SliceContext *sl)
nrefs[list]--;
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,
FFMIN((row >> 1) - !(row & 1),
pic_height - 1),