Browse Source

set start_time to 0 to enable seeking in mp3-files

patch by Thorsten Jordan, tjordan macrosystem de

Originally committed as revision 10780 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Thorsten Jordan Andreas Öman 18 years ago
parent
commit
f97931c122
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavformat/mp3.c

+ 1
- 0
libavformat/mp3.c View 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)) {


Loading…
Cancel
Save