[FFmpeg-devel] [PATCH] Set start_time to 0 for raw audio files.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Mon Apr 25 00:49:03 CEST 2011


None of the raw audio files have timestamps, thus setting
start_time to 0 should be reasonable.
---
 libavformat/rawdec.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavformat/rawdec.c b/libavformat/rawdec.c
index 02718e7..0387e3d 100644
--- a/libavformat/rawdec.c
+++ b/libavformat/rawdec.c
@@ -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;
-- 
1.7.4.4



More information about the ffmpeg-devel mailing list