mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
ffv1dec: defuse membomb
Fixes Ticket2589 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
1de28cb7e4
commit
a3264b4ba1
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user