diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-11-12 11:13:05 +0100 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2015-01-13 00:16:41 +0100 |
commit | 9e0a38d32b36fac7fd73bdb93e820ae0b9e03616 (patch) | |
tree | c5af416f01eef97c12c6665a5c182c96153f0a04 | |
parent | 39e07ac9fcaf3d412f9a33f427072e8ded032d24 (diff) | |
download | ffmpeg-9e0a38d32b36fac7fd73bdb93e820ae0b9e03616.tar.gz |
avs: check ff_set_dimensions return value
CC: libav-stable@libav.org
Bug-Id: CID 1135738
(cherry picked from commit c7384664ba0cbb12d882effafbc6d321ae706cff)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-rw-r--r-- | libavcodec/avs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/avs.c b/libavcodec/avs.c index 53e3320424..eb2da66928 100644 --- a/libavcodec/avs.c +++ b/libavcodec/avs.c @@ -165,9 +165,8 @@ static av_cold int avs_decode_init(AVCodecContext * avctx) return AVERROR(ENOMEM); avctx->pix_fmt = AV_PIX_FMT_PAL8; - ff_set_dimensions(avctx, 318, 198); - return 0; + return ff_set_dimensions(avctx, 318, 198); } static av_cold int avs_decode_end(AVCodecContext *avctx) |