From 2cb6bb425384ac1187bb4317cb3425e8797285fb Mon Sep 17 00:00:00 2001 From: Gilbok Lee Date: Thu, 13 Feb 2020 17:57:55 +0900 Subject: [PATCH] qtdemux: Fix the problem that framerate don't include in caps Change-Id: I64a76d43cfdff7f8bb39349b5ffcc6d6e6fd67c5 --- gst/isomp4/qtdemux.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c index 6e4b71c..1ebb081 100644 --- a/gst/isomp4/qtdemux.c +++ b/gst/isomp4/qtdemux.c @@ -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", -- 2.7.4