+2006-01-31 Wim Taymans <wim@fluendo.com>
+
+ * ext/theora/theoradec.c: (_theora_granule_time),
+ (theora_dec_src_convert), (theora_dec_sink_convert):
+ Call right _scale functions.
+ Use parameter instead of some other random value.
+
2006-01-31 Wim Taymans <wim@fluendo.com>
* ext/theora/theoradec.c: (_theora_granule_frame),
if (granulepos == -1)
return -1;
- framecount = _theora_granule_frame (dec, dec->granulepos);
+ framecount = _theora_granule_frame (dec, granulepos);
return gst_util_uint64_scale_int (framecount * GST_SECOND,
dec->info.fps_denominator, dec->info.fps_numerator);
case GST_FORMAT_BYTES:
scale = 3 * (dec->info.width * dec->info.height) / 2;
case GST_FORMAT_DEFAULT:
- *dest_value = scale * gst_util_uint64_scale_int (src_value,
+ *dest_value = scale * gst_util_uint64_scale (src_value,
dec->info.fps_numerator, dec->info.fps_denominator * GST_SECOND);
break;
default:
case GST_FORMAT_DEFAULT:
switch (*dest_format) {
case GST_FORMAT_TIME:
- *dest_value = gst_util_uint64_scale_int (src_value,
+ *dest_value = gst_util_uint64_scale (src_value,
GST_SECOND * dec->info.fps_denominator, dec->info.fps_numerator);
break;
case GST_FORMAT_BYTES:
guint rest;
/* framecount */
- *dest_value = gst_util_uint64_scale_int (src_value,
+ *dest_value = gst_util_uint64_scale (src_value,
dec->info.fps_numerator, GST_SECOND * dec->info.fps_denominator);
/* funny way of calculating granulepos in theora */