diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2012-02-28 19:00:39 -0800 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2012-02-29 21:43:20 +0100 |
commit | e904e9b7204b6ebd3433dd49a6c978ffb293cbdc (patch) | |
tree | a029562a68c64965eeacbeddfafa6c9bc61a2bec /libavcodec/qtrle.c | |
parent | 5f896773e07126dd66f5b83e604e99adb30617cb (diff) | |
download | ffmpeg-e904e9b7204b6ebd3433dd49a6c978ffb293cbdc.tar.gz |
qtrle: return error on decode_init() failure.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable@libav.org
(cherry picked from commit e54ae60e46f737b8e9a96548971091f7ab6b8f7c)
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
Diffstat (limited to 'libavcodec/qtrle.c')
-rw-r--r-- | libavcodec/qtrle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/qtrle.c b/libavcodec/qtrle.c index 0c74798226..6e7b3c2a43 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; |