summaryrefslogtreecommitdiff
path: root/libavcodec/clearvideo.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-04-07 21:30:45 +0200
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-04-07 22:13:20 +0200
commit916632dfbb0a987118b4d193c5cec54eba57a267 (patch)
tree02289c265df99c37dbc2a32847d99bd7d77f95ba /libavcodec/clearvideo.c
parent6cd81d68c5e4b0ff00288970c4151ff4031c0ea9 (diff)
downloadffmpeg-916632dfbb0a987118b4d193c5cec54eba57a267.tar.gz
lavc/clearvideo: Allow decoding without extradata.
Diffstat (limited to 'libavcodec/clearvideo.c')
-rw-r--r--libavcodec/clearvideo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/clearvideo.c b/libavcodec/clearvideo.c
index 9319cac0af..6061cb571e 100644
--- a/libavcodec/clearvideo.c
+++ b/libavcodec/clearvideo.c
@@ -652,6 +652,8 @@ static av_cold int clv_decode_init(AVCodecContext *avctx)
c->tile_size = AV_RL32(&avctx->extradata[94]);
} else if (avctx->extradata_size == 150) {
c->tile_size = AV_RB32(&avctx->extradata[134]);
+ } else if (!avctx->extradata_size) {
+ c->tile_size = 16;
} else {
av_log(avctx, AV_LOG_ERROR, "Unsupported extradata size: %d\n", avctx->extradata_size);
return AVERROR_INVALIDDATA;