You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
nutenc: avoid negative timestamps
Fixes Ticket1468 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -697,6 +697,9 @@ static int nut_write_header(AVFormatContext *s){
|
|||||||
if ((ret = write_headers(s, bc)) < 0)
|
if ((ret = write_headers(s, bc)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
if (s->avoid_negative_ts < 0)
|
||||||
|
s->avoid_negative_ts = 1;
|
||||||
|
|
||||||
avio_flush(bc);
|
avio_flush(bc);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user