changeset 3508:834b97115722 libavformat

Prevent invalid timestamps from being stored.
author michael
date Wed, 25 Jun 2008 22:37:26 +0000
parents 3c1206ad5d64
children 0c989007b4f0
files nutenc.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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);