aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJun Zhao <mypopydev@gmail.com>2023-03-07 07:36:19 +0800
committerJun Zhao <barryjzhao@tencent.com>2023-03-25 22:14:09 +0800
commita53bb071fee72bf297e788fdb26565ca1b5668de (patch)
tree9b8c6d7a9b5cc85105f095b3f778c54aa3f34498
parent9a23d8d894907dab4e8ae4a0818c6f983d3b64f2 (diff)
downloadffmpeg-a53bb071fee72bf297e788fdb26565ca1b5668de.tar.gz
lavf/mpeg: Add G.711 A law support
Add G.711 A law support Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
-rw-r--r--libavformat/mpeg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index 864b08d8f8..781c3162d6 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -549,6 +549,9 @@ redo:
} else if (es_type == STREAM_TYPE_AUDIO_AC3) {
codec_id = AV_CODEC_ID_AC3;
type = AVMEDIA_TYPE_AUDIO;
+ } else if (es_type == 0x90) {
+ codec_id = AV_CODEC_ID_PCM_ALAW;
+ type = AVMEDIA_TYPE_AUDIO;
} else if (m->imkh_cctv && es_type == 0x91) {
codec_id = AV_CODEC_ID_PCM_MULAW;
type = AVMEDIA_TYPE_AUDIO;