From 784cef2c84ac7b7c5ec9effe813f3e407419ca56 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Mon, 14 Mar 2005 11:26:37 +0000 Subject: Implement 'framed' property, independent of 'codec_data'. Original commit message from CVS: * ext/faad/gstfaad.c: (gst_faad_sinkconnect): * gst/matroska/matroska-demux.c: (gst_matroska_demux_audio_caps): * gst/qtdemux/qtdemux.c: (qtdemux_parse_trak), (qtdemux_audio_caps): Implement 'framed' property, independent of 'codec_data'. --- gst/qtdemux/qtdemux.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gst/qtdemux/qtdemux.c') diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c index 72949962..4f8cd416 100644 --- a/gst/qtdemux/qtdemux.c +++ b/gst/qtdemux/qtdemux.c @@ -2001,7 +2001,8 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak) * 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 ((guint64) QTDEMUX_GUINT32_GET (mdhd->data + 24) * + if (stream->timescale * qtdemux->duration != 0 && + (guint64) QTDEMUX_GUINT32_GET (mdhd->data + 24) * qtdemux->timescale * 10 / (stream->timescale * qtdemux->duration) < 2) { GST_WARNING ("Track shorter than 20%% (%d/%d vs. %d/%d) of the stream " "found, assuming preview image or something; skipping track", @@ -2807,7 +2808,7 @@ qtdemux_audio_caps (GstQTDemux * qtdemux, guint32 fourcc, const guint8 * data, case GST_MAKE_FOURCC ('m', 'p', '4', 'a'): /* MPEG-4 AAC */ return gst_caps_new_simple ("audio/mpeg", - "mpegversion", G_TYPE_INT, 4, NULL); + "mpegversion", G_TYPE_INT, 4, "framed", G_TYPE_BOOLEAN, TRUE, NULL); case GST_MAKE_FOURCC ('Q', 'D', 'M', '2'): /* FIXME: QDesign music version 2 (no constant) */ if (data) { -- cgit v1.2.1