qtdemux: Fix the problem that framerate don't include in caps 33/224833/1 tizen_gst_1.16.2
authorGilbok Lee <gilbok.lee@samsung.com>
Thu, 13 Feb 2020 08:57:55 +0000 (17:57 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Thu, 13 Feb 2020 08:57:55 +0000 (17:57 +0900)
Change-Id: I64a76d43cfdff7f8bb39349b5ffcc6d6e6fd67c5

gst/isomp4/qtdemux.c

index 6e4b71c..1ebb081 100644 (file)
@@ -9105,9 +9105,16 @@ gst_qtdemux_guess_framerate (GstQTDemux * qtdemux, QtDemuxStream * stream)
           GST_TIME_FORMAT, duration, first_duration,
           n_samples - 1, GST_TIME_ARGS (avg_duration));
 
+#ifdef TIZEN_FEATURE_QTDEMUX_MODIFICATION
+      gst_video_guess_framerate (avg_duration,
+        &CUR_STREAM (stream)->fps_n, &CUR_STREAM (stream)->fps_d);
+      if (CUR_STREAM (stream)->fps_d == 0)
+        fps_available = FALSE;
+#else
       fps_available =
           gst_video_guess_framerate (avg_duration,
           &CUR_STREAM (stream)->fps_n, &CUR_STREAM (stream)->fps_d);
+#endif
 
       GST_DEBUG_OBJECT (qtdemux,
           "Calculating framerate, timescale %u gave fps_n %d fps_d %d",