OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
835af79
)
rawdec: Set start_time to 0 for raw audio files.
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Wed, 28 Dec 2011 05:50:32 +0000
(
00:50
-0500)
committer
Anton Khirnov
<anton@khirnov.net>
Sun, 1 Jan 2012 21:27:04 +0000
(22:27 +0100)
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>
libavformat/rawdec.c
patch
|
blob
|
history
diff --git
a/libavformat/rawdec.c
b/libavformat/rawdec.c
index
589cdd5
..
3e2dd05
100644
(file)
--- 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;