aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-03-18 13:16:14 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-03-18 17:59:24 +0100
commit133055c5e47b047b0806ccdeb42b82e418bd5dfa (patch)
tree26f3adfd7020d64896b5f2f1af6b0ea1018fab78
parent4eb41d16bee406d1481d412639230510015ea708 (diff)
downloadffmpeg-133055c5e47b047b0806ccdeb42b82e418bd5dfa.tar.gz
reverts parts of commit de11ee906ed232157392924735c18ab7d8522ccb. The author of this patch has a poor understanding of the code
-rw-r--r--libavformat/asfdec.c1
-rw-r--r--libavformat/avformat.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index cdde5ae3e9..71f4e79fd5 100644
--- a/libavformat/asfdec.c
+++ b/libavformat/asfdec.c
@@ -235,7 +235,6 @@ static int asf_read_stream_properties(AVFormatContext *s, int64_t size)
if (!asf_st)
return AVERROR(ENOMEM);
st->priv_data = asf_st;
- st->start_time = 0;
start_time = asf->hdr.preroll;
asf_st->stream_language_index = 128; // invalid stream index means no language info
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 0471fd6c25..7990ce7bbe 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -534,6 +534,8 @@ typedef struct AVStream {
* Only set this if you are absolutely 100% sure that the value you set
* it to really is the pts of the first frame.
* This may be undefined (AV_NOPTS_VALUE).
+ * @note The ASF header does NOT contain a correct start_time the ASF
+ * demuxer must NOT set this.
*/
int64_t start_time;