diff options
author | Julien Moutte <julien@fluendo.com> | 2009-06-25 13:23:40 +0200 |
---|---|---|
committer | Julien Moutte <julien@fluendo.com> | 2009-06-25 13:23:40 +0200 |
commit | 5503a59a5779b67451d8a271000181790ee76bc7 (patch) | |
tree | 110a48076c87b26553bdff9c0300cab292add713 /gst/qtdemux | |
parent | 9fbdfefc568d81eb604717885307c5fe353ec5d5 (diff) |
qtdemux: Make sure we don't blacklist streams by wrongly comparing their
duration with entire clip duration.
Diffstat (limited to 'gst/qtdemux')
-rw-r--r-- | gst/qtdemux/qtdemux.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c index ea97b0a8..7fe7c2a2 100644 --- a/gst/qtdemux/qtdemux.c +++ b/gst/qtdemux/qtdemux.c @@ -3916,14 +3916,14 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak) guint64 tdur1, tdur2; /* don't overflow */ - tdur1 = stream->timescale * (guint64) qtdemux->duration; - tdur2 = qtdemux->timescale * (guint64) stream->duration; + tdur1 = stream->timescale * (guint64) stream->duration; + tdur2 = qtdemux->timescale * (guint64) qtdemux->duration; /* HACK: * some of those trailers, nowadays, have prologue images that are * themselves vide tracks as well. I haven't really found a way to * identify those yet, except for just looking at their duration. */ - if (tdur1 != 0 && (tdur2 * 10 / tdur1) < 2) { + if (tdur2 != 0 && (tdur1 * 10 / tdur2) < 2) { GST_WARNING_OBJECT (qtdemux, "Track shorter than 20%% (%" G_GUINT64_FORMAT "/%" G_GUINT32_FORMAT " vs. %" G_GUINT32_FORMAT "/%" G_GUINT32_FORMAT ") of the stream " |