diff --git a/libavformat/mmsh.c b/libavformat/mmsh.c index a7c85f6a34..ab7e9d9f7c 100644 --- a/libavformat/mmsh.c +++ b/libavformat/mmsh.c @@ -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);