fix compile warnings, fix leaks, minor functionality fixes, clean up

This commit is contained in:
niels
2015-07-26 17:46:47 +02:00
parent 9fca3094c7
commit 876107ee25
14 changed files with 265 additions and 467 deletions

View File

@@ -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);
}