[FFmpeg-devel] [PATCH 4/5] avformat/mp3dec: make generic index mode the default

wm4 nfxjfg at googlemail.com
Tue Apr 21 21:33:53 CEST 2015


It's the most useful one, because it seeks accurately, and does not
break features like gapless audio.
---
 libavformat/mp3dec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c
index 8a4dfbd..2227428 100644
--- a/libavformat/mp3dec.c
+++ b/libavformat/mp3dec.c
@@ -504,7 +504,7 @@ static int mp3_seek(AVFormatContext *s, int stream_index, int64_t timestamp,
 }
 
 static const AVOption options[] = {
-    { "usetoc", "use table of contents", offsetof(MP3DecContext, usetoc), AV_OPT_TYPE_INT, {.i64 = -1}, -1, 2, AV_OPT_FLAG_DECODING_PARAM},
+    { "usetoc", "use table of contents", offsetof(MP3DecContext, usetoc), AV_OPT_TYPE_INT, {.i64 = 2}, -1, 2, AV_OPT_FLAG_DECODING_PARAM},
     { NULL },
 };
 
-- 
2.1.4



More information about the ffmpeg-devel mailing list