aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/asfenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-09-28 02:31:07 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-09-28 02:40:53 +0200
commitb4c753487cf819213740d39c49b7bdc45338305d (patch)
tree7130c8499cfb31afae63e1eccc8ad321b0780cd8 /libavformat/asfenc.c
parent94041febc53a6da10e34c2bfff9ff1d580fdce60 (diff)
downloadffmpeg-b7ce1e769dd50d3c27f37f011780061e4dc182d7.tar.gz
asfenc: avoid negative timestampsn1.1-dev
Fixes Ticket1606 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/asfenc.c')
-rw-r--r--libavformat/asfenc.c3
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;
}