aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-09-07 12:52:24 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-12-21 04:40:03 +0100
commita2933aa59a466ae4ca50c8f41a6a16bf7df35400 (patch)
tree479528ff3791e47eb4620e0f73e2867b3af801a9
parent857eaa45ba94579cd18fec2a6fd4a4d64b9865c3 (diff)
downloadffmpeg-a2933aa59a466ae4ca50c8f41a6a16bf7df35400.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 566c0d2e2c..37da6e5534 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -1063,7 +1063,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;