diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-11-13 14:50:35 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-11-13 14:51:03 +0100 |
commit | 04f6a5230db8e3f86ec7137f87eb68c8b3ce9959 (patch) | |
tree | b5929f87b7458c001e3f034b8544bfc7bc0d0361 /libavcodec/avs.c | |
parent | b697a3314e84b6f79062d0cdf5e72ff495d30b79 (diff) | |
parent | c7384664ba0cbb12d882effafbc6d321ae706cff (diff) | |
download | ffmpeg-04f6a5230db8e3f86ec7137f87eb68c8b3ce9959.tar.gz |
Merge commit 'c7384664ba0cbb12d882effafbc6d321ae706cff'
* commit 'c7384664ba0cbb12d882effafbc6d321ae706cff':
avs: check ff_set_dimensions return value
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/avs.c')
-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 c4eaf2057b..976d325f2c 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) |