[FFmpeg-cvslog] avcodec/hevc.c: for big negative mvy value, should wait line 0 of ref frame due to edge extending

Changjiang Wei git at videolan.org
Tue Nov 11 11:54:56 CET 2014


ffmpeg | branch: master | Changjiang Wei <changjiang.wei at outlook.com> | Tue Nov 11 10:39:39 2014 +0800| [6f2068e626ee75ea4231ba0061885686866e6b66] | committer: Michael Niedermayer

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 at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6f2068e626ee75ea4231ba0061885686866e6b66
---

 libavcodec/hevc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index 36f147a..8deea09 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);



More information about the ffmpeg-cvslog mailing list