Commit 916632df authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

lavc/clearvideo: Allow decoding without extradata.

parent 6cd81d68
...@@ -652,6 +652,8 @@ static av_cold int clv_decode_init(AVCodecContext *avctx) ...@@ -652,6 +652,8 @@ static av_cold int clv_decode_init(AVCodecContext *avctx)
c->tile_size = AV_RL32(&avctx->extradata[94]); c->tile_size = AV_RL32(&avctx->extradata[94]);
} else if (avctx->extradata_size == 150) { } else if (avctx->extradata_size == 150) {
c->tile_size = AV_RB32(&avctx->extradata[134]); c->tile_size = AV_RB32(&avctx->extradata[134]);
} else if (!avctx->extradata_size) {
c->tile_size = 16;
} else { } else {
av_log(avctx, AV_LOG_ERROR, "Unsupported extradata size: %d\n", avctx->extradata_size); av_log(avctx, AV_LOG_ERROR, "Unsupported extradata size: %d\n", avctx->extradata_size);
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment