[FFmpeg-devel] [PATCH] vp9: re-initialize internal buffers on bpp change also.
Ronald S. Bultje
rsbultje at gmail.com
Fri Sep 11 19:25:03 CEST 2015
---
libavcodec/vp9.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/vp9.c b/libavcodec/vp9.c
index fcdd6e1..c605c08 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);
}
--
2.1.2
More information about the ffmpeg-devel
mailing list