From 728a1629cf9fd7f4a728477bda1d13a1ecc219bb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 10 Oct 2017 18:04:50 +0300 Subject: [PATCH] qtdemux: Fix compiler warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit qtdemux.c: In function ‘gst_qtdemux_configure_stream’: qtdemux.c:7764:34: error: suggest parentheses around ‘&&’ within ‘||’ [-Werror=parentheses] if ((stream->n_samples == 1) && (stream->first_duration == 0) ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- gst/isomp4/qtdemux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c index 85bab55..5a78702 100644 --- a/gst/isomp4/qtdemux.c +++ b/gst/isomp4/qtdemux.c @@ -7761,7 +7761,7 @@ gst_qtdemux_configure_stream (GstQTDemux * qtdemux, QtDemuxStream * stream) * qt does not have a fixed framerate. */ gboolean fps_available = TRUE; - if ((stream->n_samples == 1) && (stream->first_duration == 0) + if ((stream->n_samples == 1 && stream->first_duration == 0) || (qtdemux->fragmented && stream->n_samples_moof == 1)) { /* still frame */ CUR_STREAM (stream)->fps_n = 0; -- 2.7.4