[SCM] libav/experimental: Prevent invalid timestamps from being stored.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:24:22 UTC 2013


The following commit has been merged in the experimental branch:
commit f53dd4682c67c8328b1f2ca1e5e730fe6ecac4c2
Author: Michael Niedermayer <michaelni at gmx.at>
Date:   Wed Jun 25 22:37:26 2008 +0000

    Prevent invalid timestamps from being stored.
    
    Originally committed as revision 13983 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c
index 78e678f..06f5329 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);
 

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list