projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6fbdce
)
Prevent invalid timestamps from being stored.
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 25 Jun 2008 22:37:26 +0000
(22:37 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 25 Jun 2008 22:37:26 +0000
(22:37 +0000)
Originally committed as revision 13983 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/nutenc.c
patch
|
blob
|
history
diff --git
a/libavformat/nutenc.c
b/libavformat/nutenc.c
index
78e678f
..
06f5329
100644
(file)
--- 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);