mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-30 11:24:17 +00:00
nutenc: avoid negative timestamps
Fixes Ticket1468 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
3ba0dab76a
commit
5c4e2e8755
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user