[FFmpeg-cvslog] lavc/clearvideo: Allow decoding without extradata.
Carl Eugen Hoyos
git at videolan.org
Sat Apr 7 23:13:38 EEST 2018
ffmpeg | branch: master | Carl Eugen Hoyos <ceffmpeg at gmail.com> | Sat Apr 7 21:30:45 2018 +0200| [916632dfbb0a987118b4d193c5cec54eba57a267] | committer: Carl Eugen Hoyos
lavc/clearvideo: Allow decoding without extradata.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=916632dfbb0a987118b4d193c5cec54eba57a267
---
libavcodec/clearvideo.c | 2 ++
1 file changed, 2 insertions(+)
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;
More information about the ffmpeg-cvslog
mailing list