[FFmpeg-cvslog] r13983 - trunk/libavformat/nutenc.c

michael subversion
Thu Jun 26 00:37:27 CEST 2008


Author: michael
Date: Thu Jun 26 00:37:26 2008
New Revision: 13983

Log:
Prevent invalid timestamps from being stored.


Modified:
   trunk/libavformat/nutenc.c

Modified: trunk/libavformat/nutenc.c
==============================================================================
--- trunk/libavformat/nutenc.c	(original)
+++ trunk/libavformat/nutenc.c	Thu Jun 26 00:37:26 2008
@@ -650,6 +650,9 @@ static int write_packet(AVFormatContext 
     int store_sp=0;
     int ret;
 
+    if(pkt->pts < 0)
+        return -1;
+
     if(1LL<<(20+3*nut->header_count) <= url_ftell(bc))
         write_headers(nut, bc);
 




More information about the ffmpeg-cvslog mailing list