mirror of
https://github.com/mpv-player/mpv
synced 2025-01-18 04:51:52 +00:00
Add support for AVSEEK_SIZE in demux_lavf
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24104 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
84a215de32
commit
08dd16470b
@ -145,6 +145,8 @@ static offset_t mp_seek(URLContext *h, offset_t pos, int whence){
|
||||
pos += stream->end_pos;
|
||||
else if(whence == SEEK_SET)
|
||||
pos += stream->start_pos;
|
||||
else if(whence == AVSEEK_SIZE && stream->end_pos > 0)
|
||||
return stream->end_pos - stream->start_pos;
|
||||
else
|
||||
return -1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user