1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-15 14:13:16 +02:00

nutenc: avoid negative timestamps

Fixes Ticket1468

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer
2012-09-26 15:56:06 +02:00
parent 3ba0dab76a
commit 5c4e2e8755

View File

@@ -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;