You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
tiff: set the correct return value when check_size() fails
Only one instance affected and solved as other occurences.
This commit is contained in:
@@ -319,8 +319,10 @@ static int encode_frame(AVCodecContext *avctx, AVPacket *pkt,
|
|||||||
s->buf = &ptr;
|
s->buf = &ptr;
|
||||||
s->buf_size = pkt->size;
|
s->buf_size = pkt->size;
|
||||||
|
|
||||||
if (check_size(s, 8))
|
if (check_size(s, 8)) {
|
||||||
|
ret = AVERROR(EINVAL);
|
||||||
goto fail;
|
goto fail;
|
||||||
|
}
|
||||||
|
|
||||||
// write header
|
// write header
|
||||||
bytestream_put_le16(&ptr, 0x4949);
|
bytestream_put_le16(&ptr, 0x4949);
|
||||||
|
Reference in New Issue
Block a user