summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>2005-03-14 11:26:37 +0000
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>2005-03-14 11:26:37 +0000
commit784cef2c84ac7b7c5ec9effe813f3e407419ca56 (patch)
treea073bfc03d4238672824acab9291e18a60b82eaf /gst
parent205a92659a8b842273972a9a8c3ba58cf3abbae5 (diff)
downloadgst-plugins-bad-784cef2c84ac7b7c5ec9effe813f3e407419ca56.tar.gz
gst-plugins-bad-784cef2c84ac7b7c5ec9effe813f3e407419ca56.tar.bz2
gst-plugins-bad-784cef2c84ac7b7c5ec9effe813f3e407419ca56.zip
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'.
Diffstat (limited to 'gst')
-rw-r--r--gst/qtdemux/qtdemux.c5
1 files changed, 3 insertions, 2 deletions
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) {