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

Ronald S. Bultje git at videolan.org
Thu Mar 1 03:20:21 CET 2012


ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Tue Feb 28 19:00:39 2012 -0800| [e54ae60e46f737b8e9a96548971091f7ab6b8f7c] | committer: Ronald S. Bultje

qtrle: return error on decode_init() failure.

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable at libav.org

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

 libavcodec/qtrle.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/qtrle.c b/libavcodec/qtrle.c
index e96e278..613dcae 100644
--- a/libavcodec/qtrle.c
+++ b/libavcodec/qtrle.c
@@ -407,7 +407,7 @@ static av_cold int qtrle_decode_init(AVCodecContext *avctx)
     default:
         av_log (avctx, AV_LOG_ERROR, "Unsupported colorspace: %d bits/sample?\n",
             avctx->bits_per_coded_sample);
-        break;
+        return AVERROR_INVALIDDATA;
     }
 
     s->frame.data[0] = NULL;



More information about the ffmpeg-cvslog mailing list