mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 19:30:05 +00:00
Avoid a null pointer dereference after oom on frame size change in mpegvideo.c.
Fixes ticket #2735.
This commit is contained in:
parent
f4aa8085f2
commit
712ef25116
@ -1223,7 +1223,8 @@ int ff_MPV_common_frame_size_change(MpegEncContext *s)
|
||||
(s->mb_height * (i + 1) + nb_slices / 2) / nb_slices;
|
||||
}
|
||||
} else {
|
||||
if (init_duplicate_context(s) < 0)
|
||||
err = init_duplicate_context(s);
|
||||
if (err < 0)
|
||||
goto fail;
|
||||
s->start_mb_y = 0;
|
||||
s->end_mb_y = s->mb_height;
|
||||
|
Loading…
Reference in New Issue
Block a user