diff nutenc.c @ 3508:834b97115722 libavformat

Prevent invalid timestamps from being stored.
author michael
date Wed, 25 Jun 2008 22:37:26 +0000
parents 7a0230981402
children e5b79592e187
line wrap: on
line diff
--- a/nutenc.c	Wed Jun 25 19:59:52 2008 +0000
+++ b/nutenc.c	Wed Jun 25 22:37:26 2008 +0000
@@ -650,6 +650,9 @@
     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);