提交 10d4c5e5 编写于 作者: V Vittorio Giovara

tiff: set the correct return value when check_size() fails

Only one instance affected and solved as other occurences.
上级 3c27275c
......@@ -319,8 +319,10 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
s->buf = &ptr;
s->buf_size = pkt->size;
if (check_size(s, 8))
if (check_size(s, 8)) {
ret = AVERROR(EINVAL);
goto fail;
}
// write header
bytestream_put_le16(&ptr, 0x4949);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册