summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Smelykh <ilya.smelykh@gmail.com>2019-02-07 09:54:31 +0000
committerTim-Philipp Müller <tim@centricular.com>2019-05-06 23:43:07 +0200
commit3ebeac676ce6fa1d83e3a7518eb67170e431b707 (patch)
treeb250facc4e51c9fbdd340bbb9c2dd3154886f3cf
parent652f9c4374b23d870f05446591e6c35e10909675 (diff)
downloadgstreamer-plugins-good-3ebeac676ce6fa1d83e3a7518eb67170e431b707.tar.gz
flvdemux: set sample rate to 8KHz for G.711 audio
-rw-r--r--gst/flv/gstflvdemux.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/flv/gstflvdemux.c b/gst/flv/gstflvdemux.c
index 170c44348..045fde82b 100644
--- a/gst/flv/gstflvdemux.c
+++ b/gst/flv/gstflvdemux.c
@@ -70,8 +70,8 @@ static GstStaticPadTemplate audio_src_template =
"audio/mpeg, mpegversion = (int) 4, stream-format = (string) raw, framed = (boolean) TRUE; "
"audio/x-nellymoser, channels = (int) { 1, 2 }, rate = (int) { 5512, 8000, 11025, 16000, 22050, 44100 }; "
"audio/x-raw, format = (string) { U8, S16LE }, layout = (string) interleaved, channels = (int) { 1, 2 }, rate = (int) { 5512, 11025, 22050, 44100 }; "
- "audio/x-alaw, channels = (int) { 1, 2 }, rate = (int) { 5512, 11025, 22050, 44100 }; "
- "audio/x-mulaw, channels = (int) { 1, 2 }, rate = (int) { 5512, 11025, 22050, 44100 }; "
+ "audio/x-alaw, channels = (int) { 1, 2 }, rate = (int) 8000; "
+ "audio/x-mulaw, channels = (int) { 1, 2 }, rate = (int) 8000; "
"audio/x-speex, channels = (int) 1, rate = (int) 16000;")
);
@@ -1096,7 +1096,7 @@ gst_flv_demux_parse_tag_audio (GstFlvDemux * demux, GstBuffer * buffer)
}
/* codec tags with special rates */
- if (codec_tag == 5 || codec_tag == 14)
+ if (codec_tag == 5 || codec_tag == 14 || codec_tag == 7 || codec_tag == 8)
rate = 8000;
else if ((codec_tag == 4) || (codec_tag == 11))
rate = 16000;