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

Ronald S. Bultje rsbultje at gmail.com
Fri May 15 21:43:54 CEST 2015


---
 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);
-- 
2.1.2



More information about the ffmpeg-devel mailing list