[FFmpeg-cvslog] avformat/mp3dec: make generic index mode the default
wm4
git at videolan.org
Wed Apr 22 16:14:10 CEST 2015
ffmpeg | branch: master | wm4 <nfxjfg at googlemail.com> | Wed Apr 22 12:24:39 2015 +0200| [58fade2c68483d31f4bcaf1db49aafc45c2c3672] | committer: Michael Niedermayer
avformat/mp3dec: make generic index mode the default
It's the most useful mode, because it seeks accurately, and does not
break features like gapless audio.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=58fade2c68483d31f4bcaf1db49aafc45c2c3672
---
libavformat/mp3dec.c | 2 +-
tests/fate/gapless.mak | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c
index 8a4dfbd..a2d3dfe 100644
--- a/libavformat/mp3dec.c
+++ b/libavformat/mp3dec.c
@@ -337,7 +337,7 @@ static int mp3_read_header(AVFormatContext *s)
int i;
if (mp3->usetoc < 0)
- mp3->usetoc = 0;
+ mp3->usetoc = 2;
st = avformat_new_stream(s, NULL);
if (!st)
diff --git a/tests/fate/gapless.mak b/tests/fate/gapless.mak
index 93a878f..f0f5fd0 100644
--- a/tests/fate/gapless.mak
+++ b/tests/fate/gapless.mak
@@ -1,5 +1,5 @@
FATE_GAPLESS-$(CONFIG_MP3_DEMUXER) += fate-gapless-mp3 fate-gapless-mp3-toc fate-gapless-mp3-notoc
-fate-gapless-mp3: CMD = gapless $(TARGET_SAMPLES)/gapless/gapless.mp3 "-usetoc 2"
+fate-gapless-mp3: CMD = gapless $(TARGET_SAMPLES)/gapless/gapless.mp3
fate-gapless-mp3-toc: CMD = gapless $(TARGET_SAMPLES)/gapless/gapless.mp3 "-usetoc 1"
fate-gapless-mp3-notoc: CMD = gapless $(TARGET_SAMPLES)/gapless/gapless.mp3 "-usetoc 0"
More information about the ffmpeg-cvslog
mailing list