]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
set start_time to 0 to enable seeking in mp3-files
authorandoma <andoma@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Thu, 18 Oct 2007 15:02:34 +0000 (15:02 +0000)
committerandoma <andoma@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Thu, 18 Oct 2007 15:02:34 +0000 (15:02 +0000)
patch by Thorsten Jordan, tjordan macrosystem de

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10780 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavformat/mp3.c

index bc12e8e2a51043a153534caefd65dde7b06876be..6173be225e640090d43bcd9e6af92d7675ae03f8 100644 (file)
@@ -438,6 +438,7 @@ static int mp3_read_header(AVFormatContext *s,
     st->codec->codec_type = CODEC_TYPE_AUDIO;
     st->codec->codec_id = CODEC_ID_MP3;
     st->need_parsing = AVSTREAM_PARSE_FULL;
+    st->start_time = 0;
 
     /* try to get the TAG */
     if (!url_is_streamed(&s->pb)) {