Commit a3264b4b authored by Michael Niedermayer's avatar Michael Niedermayer

ffv1dec: defuse membomb

Fixes Ticket2589
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 1de28cb7
......@@ -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++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment