Re: [FFmpeg-devel] [PATCH] avformat/mp3dec: Make MP3 seek fast

2015-09-04 Thread Tsung-Hung Wu
From 094c6efab6c5eec1fec274bf1bcace1987ae7d03 Mon Sep 17 00:00:00 2001 From: Andy Wu Date: Mon, 31 Aug 2015 17:08:30 -0700 Subject: [PATCH] avformat/mp3dec: Make MP3 seek fast When AVFMT_FLAG_FAST_SEEK is specified, make MP3 seek operation as fast as possible. When no "-usetoc" is specified, the

[FFmpeg-devel] [PATCH] avformat/mp3dec: Make MP3 seek fast

2015-09-04 Thread Tsung-Hung Wu
Thanks wm4. I updated the patch according to your comments. >* @@ -489,19 +489,21 @@ static int mp3_seek(AVFormatContext *s, int *>* stream_index, int64_t timestamp, *>* AVStream *st = s->streams[0]; *>* int64_t ret = av_index_search_timestamp(st, timestamp, flags); *>* int64_t be

Re: [FFmpeg-devel] [PATCH] avformat/mp3dec: Make MP3 seek fast

2015-09-04 Thread Tsung-Hung Wu
patch wrong. Thank you so much for all your great contributions. Best Regards, Andy On Tue, Sep 1, 2015 at 11:35 AM, Tsung-Hung Wu wrote: > Hi FFmpeg developers, > > I am trying to solve an issue: seeking a large MP3 file is slow. This > happens when play Podcast audio, for

[FFmpeg-devel] [PATCH] avformat/mp3dec: Make MP3 seek fast

2015-09-01 Thread Tsung-Hung Wu
Hi FFmpeg developers, I am trying to solve an issue: seeking a large MP3 file is slow. This happens when play Podcast audio, for example http://podcastdownload.npr.org/anon.npr-podcasts/podcast/344098539/430765119/npr_430765119.mp3 It works not so good in less computing power mobile devices, espec