summaryrefslogtreecommitdiff
path: root/libavcodec/ffv1dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-05-19 13:56:13 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-05-19 13:56:13 +0200
commita3264b4ba1e59b6df16d8ed112c943725cc00bfb (patch)
tree9a96ee4176e91932a6c1fb30a689210974570156 /libavcodec/ffv1dec.c
parent1de28cb7e49b90de2b5156de4508d38cd1252587 (diff)
ffv1dec: defuse membomb
Fixes Ticket2589 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/ffv1dec.c')
-rw-r--r--libavcodec/ffv1dec.c2
1 files changed, 1 insertions, 1 deletions
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++) {