mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
qtdemux: Fix compilation with gcc 7
qtdemux.c: In function ‘qtdemux_parse_samples’: qtdemux.c:8450:39: error: ‘*’ in boolean context, suggest ‘&&’ instead [-Werror=int-in-bool-context] if (stream->samples_per_frame * stream->bytes_per_frame) { ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
parent
323dc466d0
commit
4c30cbfe22
1 changed files with 1 additions and 1 deletions
|
@ -8447,7 +8447,7 @@ qtdemux_parse_samples (GstQTDemux * qtdemux, QtDemuxStream * stream, guint32 n)
|
|||
GST_LOG_OBJECT (qtdemux, "Created entry %d with offset "
|
||||
"%" G_GUINT64_FORMAT, j, cur->offset);
|
||||
|
||||
if (stream->samples_per_frame * stream->bytes_per_frame) {
|
||||
if (stream->samples_per_frame > 0 && stream->bytes_per_frame > 0) {
|
||||
cur->size =
|
||||
(stream->samples_per_chunk * stream->n_channels) /
|
||||
stream->samples_per_frame * stream->bytes_per_frame;
|
||||
|
|
Loading…
Reference in a new issue