fix timecode problem in linking library, bugfixes

git-svn-id: svn://code.dyne.org/veejay/trunk@1315 eb8d1916-c9e9-0310-b8de-cf0c9472ead5
This commit is contained in:
Niels Elburg
2009-03-14 16:30:44 +00:00
parent 3b03e61116
commit 7cd82efc88
20 changed files with 10 additions and 3778 deletions

View File

@@ -60,9 +60,10 @@ char *format_time(int pos, double fps)
{
static char temp[256];
MPEG_timecode_t tc;
y4m_ratio_t r = mpeg_conform_framerate(fps);
mpeg_timecode(&tc,
pos,
mpeg_framerate_code(mpeg_conform_framerate(fps)),
mpeg_framerate_code(r),
fps );
sprintf(temp, "%d:%2.2d:%2.2d:%2.2d",tc.h, tc.m, tc.s, tc.f );
return strdup(temp);