From a3264b4ba1e59b6df16d8ed112c943725cc00bfb Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 19 May 2013 13:56:13 +0200 Subject: [PATCH] ffv1dec: defuse membomb Fixes Ticket2589 Signed-off-by: Michael Niedermayer --- libavcodec/ffv1dec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/ffv1dec.c b/libavcodec/ffv1dec.c index eb2a1f0fea..ddd307fddf 100644 --- a/libavcodec/ffv1dec.c +++ b/libavcodec/ffv1dec.c @@ -918,7 +918,7 @@ static int update_thread_context(AVCodecContext *dst, const AVCodecContext *src) if (dst == src) return 0; - if (!fdst->quant_table_count) { + if (!fdst->picture.f) { memcpy(fdst, fsrc, sizeof(*fdst)); for (i = 0; i < fdst->quant_table_count; i++) {