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
ac3_probe: speedup by checking for header earlier
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.0
Michael Niedermayer
13 years ago
parent
6cfaccabc4
commit
ebfe0c6eb8
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
libavformat/ac3dec.c
+ 2
- 0
libavformat/ac3dec.c
View File
@@ -37,6 +37,8 @@ static int ac3_eac3_probe(AVProbeData *p, enum CodecID expected_codec_id)
end = buf + p->buf_size;
for(; buf < end; buf++) {
if(buf > p->buf && (buf[0] != 0x0B || buf[1] != 0x77) )
continue;
buf2 = buf;
for(frames = 0; buf2 < end; frames++) {
Write
Preview
Loading…
Cancel
Save