diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2006-04-10 08:31:40 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2006-04-10 08:31:40 +0000 |
commit | 31a227b2aa48e5caf0af3a0ddde12a279646fa1d (patch) | |
tree | cea5b1d9a384a080aed6a8be3da52ee0fa9e4800 | |
parent | cd784357f569f178104d4b18d89ada2f77e6adb3 (diff) |
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-- | gst/qtdemux/qtdemux.c | 6 |
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; |