# HG changeset patch # User michael # Date 1214433446 0 # Node ID 834b97115722ca735bf91e879399fd8f92009785 # Parent 3c1206ad5d6443b83fdef0209d7a993ba4bd9e56 Prevent invalid timestamps from being stored. diff -r 3c1206ad5d64 -r 834b97115722 nutenc.c --- 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);