diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2015-09-11 13:24:48 -0400 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2015-09-12 07:01:47 -0400 |
commit | 2563a33856eb597c9d53b4c7cab07b6f18417740 (patch) | |
tree | 495f7d53a3d636f870ad15a403c412f9449998f1 /libavcodec/vp9.c | |
parent | 6210a64822a304797b648d1d96eb36bbe05bf21e (diff) | |
download | ffmpeg-2563a33856eb597c9d53b4c7cab07b6f18417740.tar.gz |
vp9: re-initialize internal buffers on bpp change also.
Diffstat (limited to 'libavcodec/vp9.c')
-rw-r--r-- | libavcodec/vp9.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |