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
avformat/sga: improve probing for valid files
Update variables depending on high four bits of first two bytes.
tags/n4.4
Paul B Mahol
5 years ago
parent
c6c82428af
commit
498be38e32
1 changed files
with
5 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-3
libavformat/sga.c
+ 5
- 3
libavformat/sga.c
View File
@@ -75,9 +75,11 @@ static int sga_probe(const AVProbeData *p)
if (last_left < 0)
return 0;
if (sectors && header && last_left == 0) {
if (left <= 8)
return 0;
last_left = left;
if (header >> 12) {
last_left = left;
} else {
last_left = left = header;
}
} else if (sectors && header) {
left = header;
last_left -= left;
Write
Preview
Loading…
Cancel
Save