aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/qtrle.c
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2012-02-28 19:00:39 -0800
committerRonald S. Bultje <rsbultje@gmail.com>2012-02-29 11:20:29 -0800
commite54ae60e46f737b8e9a96548971091f7ab6b8f7c (patch)
tree5b6a54f049de2de67ad021a048da4eea08199ed8 /libavcodec/qtrle.c
parent791de61bbb0d2bceb1037597b310e2a4a94494fd (diff)
downloadffmpeg-e54ae60e46f737b8e9a96548971091f7ab6b8f7c.tar.gz
qtrle: return error on decode_init() failure.
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
Diffstat (limited to 'libavcodec/qtrle.c')
-rw-r--r--libavcodec/qtrle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/qtrle.c b/libavcodec/qtrle.c
index e96e2788c9..613dcaea49 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;