diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-09-29 10:23:47 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-09-29 10:23:47 +0000 |
commit | 4b4ac5c7a8b4c90c359ad7150ac71e542973abc8 (patch) | |
tree | 3ecf6382f1fa07a74ef01458001825536e00c21e /libavformat/mp3.c | |
parent | f6765f3f04518bd0c2172733139422be49c1c82c (diff) | |
download | ffmpeg-4b4ac5c7a8b4c90c359ad7150ac71e542973abc8.tar.gz |
Sync AC3 probe values with MP3 probe values, they have to avoid similar issues.
This fixes ffmpeg-generated files with -acodec ac3 being detected as raw ac3
instead of MPEG.
Originally committed as revision 20075 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mp3.c')
-rw-r--r-- | libavformat/mp3.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/mp3.c b/libavformat/mp3.c index 42ca42fa08..01248742e0 100644 --- a/libavformat/mp3.c +++ b/libavformat/mp3.c @@ -63,6 +63,8 @@ static int mp3_read_probe(AVProbeData *p) if(buf == buf0) first_frames= frames; } + // keep this in sync with ac3 probe, both need to avoid + // issues with MPEG-files! if (first_frames>=4) return AVPROBE_SCORE_MAX/2+1; else if(max_frames>500)return AVPROBE_SCORE_MAX/2; else if(max_frames>=4) return AVPROBE_SCORE_MAX/4; |