Skip to content

Commit

Permalink
Fixed some casting.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jun 11, 2011
1 parent 4191073 commit c4ea765
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion theoraplay.c
Expand Up @@ -320,7 +320,7 @@ static void WorkerThread(TheoraDecoder *ctx)
unsigned char *yuv;
YuvVideoItem *item = (YuvVideoItem *) malloc(sizeof (YuvVideoItem));
if (item == NULL) goto cleanup;
item->playms = (fps == 0) ? 0.0 : (unsigned long) ((((double) videoframes) / fps) * 1000.0);
item->playms = (fps == 0) ? 0 : (unsigned int) ((((double) videoframes) / fps) * 1000.0);
item->fps = fps;
item->width = w;
item->height = h;
Expand Down

0 comments on commit c4ea765

Please sign in to comment.