mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
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:
parent
cd784357f5
commit
31a227b2aa
1 changed files with 5 additions and 1 deletions
|
@ -3285,8 +3285,12 @@ qtdemux_parse_trak (GstQTDemux * qtdemux, GNode * trak)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* promote to sampled format */
|
/* 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->sampled = TRUE;
|
||||||
|
stream->n_channels = 1;
|
||||||
|
stream->rate = 8000;
|
||||||
|
}
|
||||||
if (stream->fourcc == GST_MAKE_FOURCC ('m', 'p', '4', 'a'))
|
if (stream->fourcc == GST_MAKE_FOURCC ('m', 'p', '4', 'a'))
|
||||||
stream->sampled = TRUE;
|
stream->sampled = TRUE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue