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
@ -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…
x
Reference in New Issue
Block a user