aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-09-07 12:52:24 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-10-03 03:40:59 +0200
commit77bb6b5bcc845b84ca41e6f1dca16841ad30c1c0 (patch)
treefa349cc20ae414f768bb57b8d887fb9f23d925f5
parentf68395f7fcabc32f901deaa5dffd7d0ae0b458d6 (diff)
downloadffmpeg-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.c2
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;