summaryrefslogtreecommitdiff
path: root/libavcodec
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 13:26:22 +0200
commit2762323c37511fbbc98b164c07620b9ebc59ec68 (patch)
treef99035ead0ceedb17b23a95c6aa4d3e51d07fdef /libavcodec
parent94c61cd9aede4c0b57632d524a725c2dda719eb3 (diff)
avcodec/mpegvideo: Use "goto fail" for all error paths in ff_mpv_common_frame_size_change()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mpegvideo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 3d0002460a..7ae4e3580b 100644
--- a/libavcodec/mpegvideo.c
+++ b/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;