diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-09-07 12:52:24 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-09-20 18:40:33 +0200 |
commit | 9406d3c910bfb8476c7bb9b942ef15785d0a309c (patch) | |
tree | 7b3a39a94c93fd305c55f9aa6c289df7329d8c36 | |
parent | 9e1ce9a8eee17f741e3cff5c8018c42eddf8c99b (diff) | |
download | ffmpeg-9406d3c910bfb8476c7bb9b942ef15785d0a309c.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 4dc41e83da..6668ffb2b2 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -1398,7 +1398,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; |