diff options
Diffstat (limited to 'libavcodec/yop.c')
-rw-r--r-- | libavcodec/yop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/yop.c b/libavcodec/yop.c index c47f5ec14f..4d9dab8827 100644 --- a/libavcodec/yop.c +++ b/libavcodec/yop.c @@ -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; } |