[FFmpeg-cvslog] nutenc: avoid negative timestamps
Michael Niedermayer
git at videolan.org
Wed Sep 26 16:32:12 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Sep 26 15:56:06 2012 +0200| [5c4e2e875563576c67499120a254c63897fcb73f] | committer: Michael Niedermayer
nutenc: avoid negative timestamps
Fixes Ticket1468
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5c4e2e875563576c67499120a254c63897fcb73f
---
libavformat/nutenc.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c
index a4b7765..d227c9a 100644
--- a/libavformat/nutenc.c
+++ b/libavformat/nutenc.c
@@ -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;
More information about the ffmpeg-cvslog
mailing list