Browse Source

nutenc: avoid negative timestamps

Fixes Ticket1468

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.0
Michael Niedermayer 13 years ago
parent
commit
5c4e2e8755
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavformat/nutenc.c

+ 3
- 0
libavformat/nutenc.c 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;


Loading…
Cancel
Save