diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-09-26 15:56:06 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-09-26 15:56:06 +0200 |
commit | 5c4e2e875563576c67499120a254c63897fcb73f (patch) | |
tree | d561bf8dcef14c47442c8be013078a182cad36c8 /libavformat/nutenc.c | |
parent | 3ba0dab76ac32f0c9f50c916a73bc64e43c1fdf9 (diff) | |
download | ffmpeg-5c4e2e875563576c67499120a254c63897fcb73f.tar.gz |
nutenc: avoid negative timestamps
Fixes Ticket1468
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/nutenc.c')
-rw-r--r-- | libavformat/nutenc.c | 3 |
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; |