Browse Source

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@gmx.at>
tags/n2.7
wm4 Michael Niedermayer 11 years ago
parent
commit
58fade2c68
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      libavformat/mp3dec.c
  2. +1
    -1
      tests/fate/gapless.mak

+ 1
- 1
libavformat/mp3dec.c View File

@@ -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)


+ 1
- 1
tests/fate/gapless.mak View File

@@ -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"



Loading…
Cancel
Save