diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-06-25 22:37:26 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-06-25 22:37:26 +0000 |
commit | f53dd4682c67c8328b1f2ca1e5e730fe6ecac4c2 (patch) | |
tree | a8d9ec19ad2a360af912c3257f3be438037b043b /libavformat | |
parent | d6fbdcec0548b2da1e10595729e9f10ce077d83f (diff) | |
download | ffmpeg-f53dd4682c67c8328b1f2ca1e5e730fe6ecac4c2.tar.gz |
Prevent invalid timestamps from being stored.
Originally committed as revision 13983 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/nutenc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c index 78e678f0fa..06f53298d4 100644 --- a/libavformat/nutenc.c +++ b/libavformat/nutenc.c @@ -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); |