aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mpegvideo.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-09-07 12:52:24 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-09-07 15:33:05 +0200
commit0fc229450fd965d6fea86a95d1b7afec5d26e328 (patch)
tree062eaed2485231f77e89cdb78b4daade4bc84a7c /libavcodec/mpegvideo.c
parent6f02de4ee8ca10f7ec2ce61e75c7349b756faecb (diff)
downloadffmpeg-0fc229450fd965d6fea86a95d1b7afec5d26e328.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>
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r--libavcodec/mpegvideo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 3fbe03bd1a..11e5467b3d 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -1115,7 +1115,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;