summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
Diffstat (limited to 'gst')
-rw-r--r--gst/qtdemux/qtdemux.c6
1 files changed, 5 insertions, 1 deletions
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;