[FFmpeg-cvslog] vmnc: return error on decode_init() failure.

Ronald S. Bultje git at videolan.org
Mon Apr 2 01:45:16 CEST 2012


ffmpeg | branch: release/0.8 | Ronald S. Bultje <rsbultje at gmail.com> | Tue Feb 28 19:00:48 2012 -0800| [ced190c96c1fa99ca395ad02290f9784f07b07ee] | committer: Reinhard Tartler

vmnc: return error on decode_init() failure.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable at libav.org
(cherry picked from commit 07a180972fb369bb59bf6d4f8edb4598c51e80d2)

Signed-off-by: Reinhard Tartler <siretart at tauware.de>

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

 libavcodec/vmnc.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavcodec/vmnc.c b/libavcodec/vmnc.c
index f95bef7..4521d15 100644
--- a/libavcodec/vmnc.c
+++ b/libavcodec/vmnc.c
@@ -483,6 +483,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
         break;
     default:
         av_log(avctx, AV_LOG_ERROR, "Unsupported bitdepth %i\n", c->bpp);
+        return AVERROR_INVALIDDATA;
     }
 
     return 0;



More information about the ffmpeg-cvslog mailing list