mirror of
https://github.com/mpv-player/mpv
synced 2024-12-26 09:02:38 +00:00
remove pointless cast to int
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22464 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
4b217802c4
commit
4cb645c043
@ -379,7 +379,7 @@ static int demux_avs_control(demuxer_t *demuxer, int cmd, void *arg)
|
|||||||
case DEMUXER_CTRL_GET_PERCENT_POS:
|
case DEMUXER_CTRL_GET_PERCENT_POS:
|
||||||
{
|
{
|
||||||
if (!AVS->video_info->num_frames) return DEMUXER_CTRL_DONTKNOW;
|
if (!AVS->video_info->num_frames) return DEMUXER_CTRL_DONTKNOW;
|
||||||
*((int *)arg) = (int) (AVS->frameno * 100 / AVS->video_info->num_frames);
|
*((int *)arg) = AVS->frameno * 100 / AVS->video_info->num_frames;
|
||||||
return DEMUXER_CTRL_OK;
|
return DEMUXER_CTRL_OK;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user