summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2006-04-10 08:31:40 +0000
committerWim Taymans <wim.taymans@gmail.com>2006-04-10 08:31:40 +0000
commit1a230de17b45ee41392eb612e27a169d38cd29ba (patch)
tree8ec450c3b5afea441a2c3d861d24f28589dced60
parent6ea2c23869bdb0fe6b96fb59c58b71c00f794bfc (diff)
downloadgst-plugins-bad-1a230de17b45ee41392eb612e27a169d38cd29ba.tar.gz
gst-plugins-bad-1a230de17b45ee41392eb612e27a169d38cd29ba.tar.bz2
gst-plugins-bad-1a230de17b45ee41392eb612e27a169d38cd29ba.zip
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.
-rw-r--r--ChangeLog5
-rw-r--r--gst/qtdemux/qtdemux.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 662d19b4..3a467ad8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-04-10 Wim Taymans <wim@fluendo.com>
+
+ * gst/qtdemux/qtdemux.c: (qtdemux_parse_trak):
+ force mono 8000 Hz on AMR samples.
+
2006-04-09 Sebastien Moutte <sebastien@moutte.net>
* ext/neon/gstneonhttpsrc.c: (gst_neonhttp_src_start):
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;