Set start_time to 0 for raw audio files.
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>
Sun, 24 Apr 2011 22:47:40 +0000 (00:47 +0200)
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>
Mon, 25 Apr 2011 14:51:27 +0000 (16:51 +0200)
None of the raw audio files have timestamps, thus setting
start_time to 0 should be reasonable.

libavformat/rawdec.c

index 02718e7..0387e3d 100644 (file)
@@ -100,6 +100,7 @@ int ff_raw_audio_read_header(AVFormatContext *s,
     st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
     st->codec->codec_id = s->iformat->value;
     st->need_parsing = AVSTREAM_PARSE_FULL;
+    st->start_time = 0;
     /* the parameters will be extracted from the compressed bitstream */
 
     return 0;