vaapidecode: proper numerator and denominator for forced latency framerate
authorMark Nauwelaerts <mnauw@users.sourceforge.net>
Tue, 15 Sep 2015 08:01:29 +0000 (11:01 +0300)
committerSreerenj Balachandran <sreerenj.balachandran@intel.com>
Tue, 15 Sep 2015 08:01:29 +0000 (11:01 +0300)
https://bugzilla.gnome.org/show_bug.cgi?id=755040

gst/vaapi/gstvaapidecode.c

index 313e4049c6e56f06954367b53aad779f673f5193..6703672e1c0ed3e0e178fd67b03c85530c3b9b83 100644 (file)
@@ -263,8 +263,8 @@ gst_vaapidecode_update_src_caps (GstVaapiDecode * decode)
   gint fps_d = GST_VIDEO_INFO_FPS_D (vi);
   if (fps_n <= 0 || fps_d <= 0) {
     GST_DEBUG_OBJECT (decode, "forcing 25/1 framerate for latency calculation");
-    fps_n = 1;
-    fps_d = 25;
+    fps_n = 25;
+    fps_d = 1;
   }
 
   /* For parsing/preparation purposes we'd need at least 1 frame