aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-09-26 15:56:06 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-09-26 15:56:06 +0200
commit5c4e2e875563576c67499120a254c63897fcb73f (patch)
treed561bf8dcef14c47442c8be013078a182cad36c8
parent3ba0dab76ac32f0c9f50c916a73bc64e43c1fdf9 (diff)
downloadffmpeg-5c4e2e875563576c67499120a254c63897fcb73f.tar.gz
nutenc: avoid negative timestamps
Fixes Ticket1468 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/nutenc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c
index a4b776522d..d227c9a314 100644
--- a/libavformat/nutenc.c
+++ b/libavformat/nutenc.c
@@ -697,6 +697,9 @@ static int nut_write_header(AVFormatContext *s){
if ((ret = write_headers(s, bc)) < 0)
return ret;
+ if (s->avoid_negative_ts < 0)
+ s->avoid_negative_ts = 1;
+
avio_flush(bc);
return 0;