Commit 5c4e2e87 authored by Michael Niedermayer's avatar Michael Niedermayer

nutenc: avoid negative timestamps

Fixes Ticket1468
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 3ba0dab7
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment