diff options
author | Michael Niedermayer | 2012-09-28 02:31:07 +0200 |
---|---|---|
committer | Michael Niedermayer | 2012-09-28 02:40:53 +0200 |
commit | b4c753487cf819213740d39c49b7bdc45338305d (patch) | |
tree | 7130c8499cfb31afae63e1eccc8ad321b0780cd8 /libavformat | |
parent | 94041febc53a6da10e34c2bfff9ff1d580fdce60 (diff) |
asfenc: avoid negative timestamps
Fixes Ticket1606
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/asfenc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/asfenc.c b/libavformat/asfenc.c index 8d169f7e2e..82681d24f1 100644 --- a/libavformat/asfenc.c +++ b/libavformat/asfenc.c @@ -579,6 +579,9 @@ static int asf_write_header(AVFormatContext *s) ffio_init_context(&asf->pb, asf->packet_buf, s->packet_size, 1, NULL, NULL, NULL, NULL); + if (s->avoid_negative_ts < 0) + s->avoid_negative_ts = 1; + return 0; } |