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
avsdemux: check for corrupted data
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
tags/n0.9
Laurent Aimar
Janne Grunau
14 years ago
parent
7bb1807c2d
commit
76c6971a64
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
libavformat/avs.c
+ 2
- 0
libavformat/avs.c
View File
@@ -163,6 +163,8 @@ static int avs_read_packet(AVFormatContext * s, AVPacket * pkt)
sub_type = avio_r8(s->pb);
type = avio_r8(s->pb);
size = avio_rl16(s->pb);
if (size < 4)
return AVERROR_INVALIDDATA;
avs->remaining_frame_size -= size;
switch (type) {
Write
Preview
Loading…
Cancel
Save