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.
This commit is contained in:
Wim Taymans 2006-04-10 08:31:40 +00:00
parent 6ea2c23869
commit 1a230de17b
2 changed files with 10 additions and 1 deletions

View file

@ -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):

View file

@ -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;