mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-07 19:22:15 +00:00
gst/qtdemux/qtdemux.c: Can't divide through zero (suppress warning in case of stream with one single still picture) (...
Original commit message from CVS: * gst/qtdemux/qtdemux.c: (qtdemux_parse_trak): Can't divide through zero (suppress warning in case of stream with one single still picture) (see #327083)
This commit is contained in:
parent
51e099148d
commit
4a67e5b83e
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2006-02-28 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
* gst/qtdemux/qtdemux.c: (qtdemux_parse_trak):
|
||||||
|
Can't divide through zero (suppress warning in case of
|
||||||
|
stream with one single still picture) (see #327083)
|
||||||
|
|
||||||
2006-02-25 Julien MOUTTE <julien@moutte.net>
|
2006-02-25 Julien MOUTTE <julien@moutte.net>
|
||||||
|
|
||||||
* sys/glsink/glimagesink.c: It doesn't seem we need GLU.h
|
* sys/glsink/glimagesink.c: It doesn't seem we need GLU.h
|
||||||
|
|
|
@ -2820,8 +2820,11 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
|
||||||
samples[j].duration =
|
samples[j].duration =
|
||||||
samples_per_chunk * stream->timescale / (stream->rate / 2);
|
samples_per_chunk * stream->timescale / (stream->rate / 2);
|
||||||
samples[j].timestamp = timestamp;
|
samples[j].timestamp = timestamp;
|
||||||
timestamp += gst_util_uint64_scale_int (samples_per_chunk, GST_SECOND,
|
|
||||||
stream->rate);
|
if (stream->rate > 0) {
|
||||||
|
timestamp += gst_util_uint64_scale_int (samples_per_chunk,
|
||||||
|
GST_SECOND, stream->rate);
|
||||||
|
}
|
||||||
#if 0
|
#if 0
|
||||||
GST_INFO ("moo samples_per_chunk=%d rate=%d dur=%lld %lld",
|
GST_INFO ("moo samples_per_chunk=%d rate=%d dur=%lld %lld",
|
||||||
(int) samples_per_chunk,
|
(int) samples_per_chunk,
|
||||||
|
|
Loading…
Reference in a new issue