]> git.sesse.net Git - ffmpeg/commitdiff
mmsh: do not try to seek to negative tiimestamps, it does not work
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 31 Oct 2011 22:40:04 +0000 (23:40 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 31 Oct 2011 23:47:25 +0000 (00:47 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mmsh.c

index a7c85f6a34a50ed2c9f9a7a887efd16f86aa9912..ab7e9d9f7c8187b2e1b04df74f3f490d32c20c37 100644 (file)
@@ -373,7 +373,8 @@ static int64_t mmsh_read_seek(URLContext *h, int stream_index,
     MMSContext *mms   = &mmsh->mms;
     int ret;
 
-    ret= mmsh_open_internal(h, mmsh->location, 0, timestamp, 0);
+    ret= mmsh_open_internal(h, mmsh->location, 0, FFMAX(timestamp, 0), 0);
+
     if(ret>=0){
         if (mms->mms_hd)
             ffurl_close(mms->mms_hd);