Commit f53dd468 authored by Michael Niedermayer's avatar Michael Niedermayer

Prevent invalid timestamps from being stored.

Originally committed as revision 13983 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent d6fbdcec
......@@ -650,6 +650,9 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt){
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment