[FFmpeg-cvslog] vp9: fix crash when playing back 440/440 content with width%64<56.

Ronald S. Bultje git at videolan.org
Mon May 18 02:44:28 CEST 2015


ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Thu May 14 22:48:59 2015 -0400| [88126916c8199bacdd429a3f9eeb3b717f0d3b9a] | committer: Ronald S. Bultje

vp9: fix crash when playing back 440/440 content with width%64<56.

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

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

diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
index 8e0d598..23cf99b 100644
--- a/libavcodec/vp9.c
+++ b/libavcodec/vp9.c
@@ -3314,7 +3314,7 @@ static void decode_b(AVCodecContext *ctx, int row, int col,
         int w = FFMIN(s->cols - col, w4) * 8 >> s->ss_h;
         int h = FFMIN(s->rows - row, h4) * 8 >> s->ss_v, n, o = 0;
 
-        for (n = 1; o < w; n++) {
+        for (n = s->ss_h; o < w; n++) {
             int bw = 64 >> n;
 
             av_assert2(n <= 4);



More information about the ffmpeg-cvslog mailing list