Browse Source

lavc/clearvideo: Allow decoding without extradata.

tags/n4.0
Carl Eugen Hoyos 7 years ago
parent
commit
916632dfbb
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/clearvideo.c

+ 2
- 0
libavcodec/clearvideo.c View File

@@ -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;


Loading…
Cancel
Save