diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-09-07 12:52:24 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-10-03 03:40:59 +0200 |
commit | 77bb6b5bcc845b84ca41e6f1dca16841ad30c1c0 (patch) | |
tree | fa349cc20ae414f768bb57b8d887fb9f23d925f5 | |
parent | f68395f7fcabc32f901deaa5dffd7d0ae0b458d6 (diff) | |
download | ffmpeg-77bb6b5bcc845b84ca41e6f1dca16841ad30c1c0.tar.gz |
avcodec/mpegvideo: Use "goto fail" for all error paths in ff_mpv_common_frame_size_change()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 2762323c37511fbbc98b164c07620b9ebc59ec68)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/mpegvideo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index a9024a978e..eb3a1ba644 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -1466,7 +1466,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; |