summaryrefslogtreecommitdiff
path: root/libavformat/rawdec.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-12-28 00:50:32 -0500
committerAnton Khirnov <anton@khirnov.net>2012-01-01 22:27:04 +0100
commitc914038d381df57a9b22fb98f8083d6bea2e4856 (patch)
tree1f6c52d4bc9ed2063c20dfb3af7f3dc1c549c643 /libavformat/rawdec.c
parent835af79b052c25d7c7ac33dd6d1dd2f52ab13276 (diff)
downloadffmpeg-c914038d381df57a9b22fb98f8083d6bea2e4856.tar.gz
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@khirnov.net>
Diffstat (limited to 'libavformat/rawdec.c')
-rw-r--r--libavformat/rawdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/rawdec.c b/libavformat/rawdec.c
index 589cdd5db9..3e2dd05940 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;