Commit 3138b158 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '06cf597c'

* commit '06cf597c':
  yop: check that extradata is large enough.

Conflicts:
	libavcodec/yop.c
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 769eba75 06cf597c
......@@ -89,8 +89,8 @@ static av_cold int yop_decode_init(AVCodecContext *avctx)
return AVERROR_INVALIDDATA;
}
if (!avctx->extradata) {
av_log(avctx, AV_LOG_ERROR, "extradata missing\n");
if (avctx->extradata_size < 3) {
av_log(avctx, AV_LOG_ERROR, "Missing or incomplete extradata.\n");
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