diff options
author | Changjiang Wei <changjiang.wei@outlook.com> | 2014-11-11 10:39:39 +0800 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-11-11 11:45:20 +0100 |
commit | 6f2068e626ee75ea4231ba0061885686866e6b66 (patch) | |
tree | d87ad774ae714cd1e5e1988c5f51feadc7ca59ec /libavcodec/hevc.c | |
parent | cfaa2339629dadc434dc74f4a262ea23b7f70871 (diff) | |
download | ffmpeg-6f2068e626ee75ea4231ba0061885686866e6b66.tar.gz |
avcodec/hevc.c: for big negative mvy value, should wait line 0 of ref frame due to edge extending
Reviewed-by: Mickaƫl Raulet <mraulet@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/hevc.c')
-rw-r--r-- | libavcodec/hevc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index 36f147a392..8deea097bc 100644 --- a/libavcodec/hevc.c +++ b/libavcodec/hevc.c @@ -1571,7 +1571,7 @@ static void chroma_mc_bi(HEVCContext *s, uint8_t *dst0, ptrdiff_t dststride, AVF static void hevc_await_progress(HEVCContext *s, HEVCFrame *ref, const Mv *mv, int y0, int height) { - int y = (mv->y >> 2) + y0 + height + 9; + int y = FFMAX(0, (mv->y >> 2) + y0 + height + 9); if (s->threads_type == FF_THREAD_FRAME ) ff_thread_await_progress(&ref->tf, y, 0); |