From 2563a33856eb597c9d53b4c7cab07b6f18417740 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Fri, 11 Sep 2015 13:24:48 -0400 Subject: [PATCH] vp9: re-initialize internal buffers on bpp change also. --- libavcodec/vp9.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c index fcdd6e128e..c605c08288 100644 --- a/libavcodec/vp9.c +++ b/libavcodec/vp9.c @@ -4319,7 +4319,8 @@ static int vp9_decode_update_thread_context(AVCodecContext *dst, const AVCodecCo // detect size changes in other threads if (s->intra_pred_data[0] && - (!ssrc->intra_pred_data[0] || s->cols != ssrc->cols || s->rows != ssrc->rows)) { + (!ssrc->intra_pred_data[0] || s->cols != ssrc->cols || + s->rows != ssrc->rows || s->bpp != ssrc->bpp)) { free_buffers(s); }