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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/88/head
Michael Niedermayer 10 years ago
parent 94c61cd9ae
commit 2762323c37
  1. 2
      libavcodec/mpegvideo.c

@ -1485,7 +1485,7 @@ int ff_mpv_common_frame_size_change(MpegEncContext *s)
if ((s->width || s->height) &&
av_image_check_size(s->width, s->height, 0, s->avctx))
return AVERROR_INVALIDDATA;
goto fail;
if ((err = init_context_frame(s)))
goto fail;

Loading…
Cancel
Save