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

2015-09-05 Thread wm4
On Fri, 4 Sep 2015 13:48:41 -0700 Tsung-Hung Wu wrote: > 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

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

2015-09-04 Thread wm4
On Fri, 4 Sep 2015 13:55:22 -0700 Tsung-Hung Wu wrote: > 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 see

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 Paul B Mahol
On 9/4/15, Tsung-Hung Wu wrote: > Hi FFmpeg developers, > > Sorry for the spam. I know you are busy. Please take your time to review > the patch. I don't mean to rush at all. > Since the is my first patch, I just want to make sure I was doing the right > thing. Please kindly let me know if I poste

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

2015-09-04 Thread Tsung-Hung Wu
Hi FFmpeg developers, Sorry for the spam. I know you are busy. Please take your time to review the patch. I don't mean to rush at all. Since the is my first patch, I just want to make sure I was doing the right thing. Please kindly let me know if I posted to a wrong mail group or made the patch wr

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

2015-09-02 Thread wm4
On Tue, 1 Sep 2015 11:35:17 -0700 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 example > http://podcastdownload.npr.org/anon.npr-podcasts/podcast/344098539/430765119/npr_430765119.mp3

[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