Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2012-02-29 07:00:39 +0400
committerReinhard Tartler <siretart@tauware.de>2012-04-01 20:33:27 +0400
commit87a1169ab85d4232daff457b16c2fac9280fe608 (patch)
tree2a201ffdeb3ea3824d486f320937f0eac26f9c47 /libavcodec
parent4f64456a144d89cc026048816031e8c3dcd29737 (diff)
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')
-rw-r--r--libavcodec/qtrle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/qtrle.c b/libavcodec/qtrle.c
index e14c306c6b..6f65d1ec66 100644
--- a/libavcodec/qtrle.c
+++ b/libavcodec/qtrle.c
@@ -414,7 +414,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;