[FFmpeg-cvslog] rawdec: Set start_time to 0 for raw audio files.
Reimar Döffinger
git at videolan.org
Mon Jan 2 03:25:14 CET 2012
ffmpeg | branch: master | Reimar Döffinger <Reimar.Doeffinger at gmx.de> | Wed Dec 28 00:50:32 2011 -0500| [c914038d381df57a9b22fb98f8083d6bea2e4856] | committer: Anton Khirnov
rawdec: Set start_time to 0 for raw audio files.
None of the raw audio files have timestamps, thus setting
start_time to 0 should be reasonable.
Signed-off-by: Anton Khirnov <anton at khirnov.net>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c914038d381df57a9b22fb98f8083d6bea2e4856
---
libavformat/rawdec.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/libavformat/rawdec.c b/libavformat/rawdec.c
index 589cdd5..3e2dd05 100644
--- a/libavformat/rawdec.c
+++ b/libavformat/rawdec.c
@@ -129,6 +129,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;
More information about the ffmpeg-cvslog
mailing list