[FFmpeg-cvslog] avs: check ff_set_dimensions return value

Vittorio Giovara git at videolan.org
Sun Jan 18 03:20:22 CET 2015


ffmpeg | branch: release/2.4 | Vittorio Giovara <vittorio.giovara at gmail.com> | Wed Nov 12 11:13:05 2014 +0100| [9e0a38d32b36fac7fd73bdb93e820ae0b9e03616] | committer: Luca Barbato

avs: check ff_set_dimensions return value

CC: libav-stable at libav.org
Bug-Id: CID 1135738
(cherry picked from commit c7384664ba0cbb12d882effafbc6d321ae706cff)
Signed-off-by: Luca Barbato <lu_zero at gentoo.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9e0a38d32b36fac7fd73bdb93e820ae0b9e03616
---

 libavcodec/avs.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavcodec/avs.c b/libavcodec/avs.c
index 53e3320..eb2da66 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)



More information about the ffmpeg-cvslog mailing list