mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
mmsh: do not try to seek to negative tiimestamps, it does not work
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
0f39fa0279
commit
8af4ac5272
@ -373,7 +373,8 @@ static int64_t mmsh_read_seek(URLContext *h, int stream_index,
|
|||||||
MMSContext *mms = &mmsh->mms;
|
MMSContext *mms = &mmsh->mms;
|
||||||
int ret;
|
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(ret>=0){
|
||||||
if (mms->mms_hd)
|
if (mms->mms_hd)
|
||||||
ffurl_close(mms->mms_hd);
|
ffurl_close(mms->mms_hd);
|
||||||
|
Loading…
Reference in New Issue
Block a user