From 31a227b2aa48e5caf0af3a0ddde12a279646fa1d Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 10 Apr 2006 08:31:40 +0000 Subject: gst/qtdemux/qtdemux.c: force mono 8000 Hz on AMR samples. Original commit message from CVS: * gst/qtdemux/qtdemux.c: (qtdemux_parse_trak): force mono 8000 Hz on AMR samples. --- gst/qtdemux/qtdemux.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c index 204aca32..689651a7 100644 --- a/gst/qtdemux/qtdemux.c +++ b/gst/qtdemux/qtdemux.c @@ -3285,8 +3285,12 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak) } /* promote to sampled format */ - if (stream->fourcc == GST_MAKE_FOURCC ('s', 'a', 'm', 'r')) + if (stream->fourcc == GST_MAKE_FOURCC ('s', 'a', 'm', 'r')) { + /* force mono 8000 Hz for AMR */ stream->sampled = TRUE; + stream->n_channels = 1; + stream->rate = 8000; + } if (stream->fourcc == GST_MAKE_FOURCC ('m', 'p', '4', 'a')) stream->sampled = TRUE; -- cgit