This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
tiff: set the correct return value when check_size() fails
Only one instance affected and solved as other occurences.
tags/n2.6
Vittorio Giovara
11 years ago
parent
3c27275c13
commit
10d4c5e55e
1 changed files
with
3 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-1
libavcodec/tiffenc.c
+ 3
- 1
libavcodec/tiffenc.c
View File
@@ -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);
Write
Preview
Loading…
Cancel
Save