mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/sga: improve probing for valid files
Update variables depending on high four bits of first two bytes.
This commit is contained in:
parent
c6c82428af
commit
498be38e32
|
@ -75,9 +75,11 @@ static int sga_probe(const AVProbeData *p)
|
||||||
if (last_left < 0)
|
if (last_left < 0)
|
||||||
return 0;
|
return 0;
|
||||||
if (sectors && header && last_left == 0) {
|
if (sectors && header && last_left == 0) {
|
||||||
if (left <= 8)
|
if (header >> 12) {
|
||||||
return 0;
|
last_left = left;
|
||||||
last_left = left;
|
} else {
|
||||||
|
last_left = left = header;
|
||||||
|
}
|
||||||
} else if (sectors && header) {
|
} else if (sectors && header) {
|
||||||
left = header;
|
left = header;
|
||||||
last_left -= left;
|
last_left -= left;
|
||||||
|
|
Loading…
Reference in New Issue