jpegparse: Fix duration in buffers. It's frames per second, not seconds per frame
authorYouness Alaoui <youness.alaoui@collabora.co.uk>
Tue, 17 Apr 2012 22:56:50 +0000 (18:56 -0400)
committerOlivier CrĂȘte <olivier.crete@collabora.com>
Wed, 18 Apr 2012 01:23:30 +0000 (21:23 -0400)
gst/jpegformat/gstjpegparse.c

index fd977dc..d8367f8 100644 (file)
@@ -821,7 +821,7 @@ gst_jpeg_parse_set_new_caps (GstJpegParse * parse, gboolean header_ok)
     if (!GST_CLOCK_TIME_IS_VALID (parse->priv->duration)
         && parse->priv->framerate_numerator != 0) {
       parse->priv->duration = gst_util_uint64_scale_int (GST_SECOND,
-          parse->priv->framerate_numerator, parse->priv->framerate_denominator);
+          parse->priv->framerate_denominator, parse->priv->framerate_numerator);
     }
   } else {
     /* unknown duration */