Commit d4872a0c authored by michael's avatar michael

Prevent invalid timestamps from being stored.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13983 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 6414288b
......@@ -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