if (numsubs > 0) // make true len for prev sub, autofix overlapping subtitles
{
if (video->subtitle_end[numsubs-1] <= 0)
- video->subtitle_end[numsubs-1] = 99999999; // fixme: make it end when video ends?
+ video->subtitle_end[numsubs-1] = (float)99999999; // fixme: make it end when video ends?
else
video->subtitle_end[numsubs-1] = video->subtitle_start[numsubs-1] + video->subtitle_end[numsubs-1];
}
static clvideo_t* OpenVideo( clvideo_t *video, const char *filename, const char *name, int owner, const char *subtitlesfile )
{
- strlcpy(video->filename, filename, sizeof(video->filename));
+ dp_strlcpy(video->filename, filename, sizeof(video->filename));
dpsnprintf(video->name, sizeof(video->name), CLVIDEOPREFIX "%s", name);
video->ownertag = owner;
if( strncmp( name, CLVIDEOPREFIX, sizeof( CLVIDEOPREFIX ) - 1 ) )
st[6] = 1.0; st[7] = 1.0;
if (cl_video_keepaspectratio.integer)
{
- float a = video->getaspectratio(video->stream) / ((float)vid.width / (float)vid.height);
+ float a = video->getaspectratio(video->stream) / ((float)vid.mode.width / (float)vid.mode.height);
if (cl_video_keepaspectratio.integer >= 2)
{
// clip instead of scale
void CL_VideoStart(char *filename, const char *subtitlesfile)
{
- Host_StartVideo();
+ CL_StartVideo();
if( cl_videos->state != CLVIDEO_UNUSED )
CL_CloseVideo( cl_videos );
char name[MAX_QPATH], subtitlesfile[MAX_QPATH];
const char *extension;
- Host_StartVideo();
+ CL_StartVideo();
if (Sys_CheckParm("-benchmark"))
return;