summaryrefslogtreecommitdiff
path: root/libavformat/mmsh.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-10-31 23:40:04 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-11-01 00:47:25 +0100
commit8af4ac5272e8eaff90c3102b9473bb09cc6f4201 (patch)
treeb3cbe79885ce04044bac19f8ad55c60efe677d03 /libavformat/mmsh.c
parent0f39fa0279e12c7a174d1da9294bffd95cb15c4c (diff)
downloadffmpeg-8af4ac5272e8eaff90c3102b9473bb09cc6f4201.tar.gz
mmsh: do not try to seek to negative tiimestamps, it does not work
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mmsh.c')
-rw-r--r--libavformat/mmsh.c3
1 files changed, 2 insertions, 1 deletions
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);