diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-11-12 11:13:05 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-11-13 01:41:27 +0100 |
commit | c7384664ba0cbb12d882effafbc6d321ae706cff (patch) | |
tree | 2efb5ec802b371b629bbb2a7f783e7dbaa68fb34 /libavcodec | |
parent | 2b5c1efa1465d8646f8be525cace7a21404e40ad (diff) | |
download | ffmpeg-c7384664ba0cbb12d882effafbc6d321ae706cff.tar.gz |
avs: check ff_set_dimensions return value
CC: libav-stable@libav.org
Bug-Id: CID 1135738
Diffstat (limited to 'libavcodec')
-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) |