mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
mpegvideo: fix null pointer dereference on switching streams
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
7b3ca7ae8b
commit
46c48d546d
@ -695,6 +695,7 @@ int ff_mpeg_update_thread_context(AVCodecContext *dst,
|
||||
s->input_picture_number = s1->input_picture_number;
|
||||
|
||||
av_assert0(!s->picture || s->picture != s1->picture);
|
||||
if(s->picture)
|
||||
for (i = 0; i < MAX_PICTURE_COUNT; i++) {
|
||||
ff_mpeg_unref_picture(s, &s->picture[i]);
|
||||
if (s1->picture[i].f.data[0] &&
|
||||
|
Loading…
Reference in New Issue
Block a user