Commit 2762323c authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/mpegvideo: Use "goto fail" for all error paths in ff_mpv_common_frame_size_change()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 94c61cd9
...@@ -1485,7 +1485,7 @@ int ff_mpv_common_frame_size_change(MpegEncContext *s) ...@@ -1485,7 +1485,7 @@ int ff_mpv_common_frame_size_change(MpegEncContext *s)
if ((s->width || s->height) && if ((s->width || s->height) &&
av_image_check_size(s->width, s->height, 0, s->avctx)) av_image_check_size(s->width, s->height, 0, s->avctx))
return AVERROR_INVALIDDATA; goto fail;
if ((err = init_context_frame(s))) if ((err = init_context_frame(s)))
goto fail; goto fail;
......
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