Commit 4cffcbc8 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '10d4c5e5'

* commit '10d4c5e5':
  tiff: set the correct return value when check_size() fails
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 07b4d4b1 10d4c5e5
......@@ -334,8 +334,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% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment