mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-19 14:19:58 +01:00
fix compile warnings, fix leaks, minor functionality fixes, clean up
This commit is contained in:
@@ -47,8 +47,8 @@ int status_to_arr( char *status, int *array )
|
||||
array + 15,
|
||||
array + 16,
|
||||
array + 17,
|
||||
array + 18,
|
||||
array + 19,
|
||||
array + 18,
|
||||
array + 19,
|
||||
array + 20,
|
||||
array + 21,
|
||||
array + 22 );
|
||||
@@ -58,14 +58,14 @@ int status_to_arr( char *status, int *array )
|
||||
|
||||
char *format_time(int pos, double fps)
|
||||
{
|
||||
char temp[256];
|
||||
MPEG_timecode_t tc;
|
||||
char temp[128];
|
||||
MPEG_timecode_t tc;
|
||||
y4m_ratio_t r = mpeg_conform_framerate(fps);
|
||||
mpeg_timecode(&tc,
|
||||
pos,
|
||||
mpeg_framerate_code(r),
|
||||
fps );
|
||||
snprintf(temp,sizeof(temp),"%d:%2.2d:%2.2d:%2.2d",tc.h, tc.m, tc.s, tc.f );
|
||||
return strdup(temp);
|
||||
snprintf(temp,sizeof(temp),"%d:%2.2d:%2.2d:%2.2d",tc.h, tc.m, tc.s, tc.f );
|
||||
return strdup(temp);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user