You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/mpegvideo: fix null pointer dereference
Fixes: 111342.ogm with ffplay Found-by: Dale Curtis <dalecurtis@google.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -931,7 +931,7 @@ int ff_mpeg_update_thread_context(AVCodecContext *dst,
|
|||||||
#define UPDATE_PICTURE(pic)\
|
#define UPDATE_PICTURE(pic)\
|
||||||
do {\
|
do {\
|
||||||
ff_mpeg_unref_picture(s, &s->pic);\
|
ff_mpeg_unref_picture(s, &s->pic);\
|
||||||
if (s1->pic.f->buf[0])\
|
if (s1->pic.f && s1->pic.f->buf[0])\
|
||||||
ret = ff_mpeg_ref_picture(s, &s->pic, &s1->pic);\
|
ret = ff_mpeg_ref_picture(s, &s->pic, &s1->pic);\
|
||||||
else\
|
else\
|
||||||
ret = update_picture_tables(&s->pic, &s1->pic);\
|
ret = update_picture_tables(&s->pic, &s1->pic);\
|
||||||
|
Reference in New Issue
Block a user