mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-17 20:17:55 +02:00
Prevent invalid timestamps from being stored.
Originally committed as revision 13983 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
d6fbdcec05
commit
f53dd4682c
@ -650,6 +650,9 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt){
|
|||||||
int store_sp=0;
|
int store_sp=0;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
if(pkt->pts < 0)
|
||||||
|
return -1;
|
||||||
|
|
||||||
if(1LL<<(20+3*nut->header_count) <= url_ftell(bc))
|
if(1LL<<(20+3*nut->header_count) <= url_ftell(bc))
|
||||||
write_headers(nut, bc);
|
write_headers(nut, bc);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user