From a53bb071fee72bf297e788fdb26565ca1b5668de Mon Sep 17 00:00:00 2001 From: Jun Zhao Date: Tue, 7 Mar 2023 07:36:19 +0800 Subject: [PATCH] lavf/mpeg: Add G.711 A law support Add G.711 A law support Signed-off-by: Jun Zhao --- libavformat/mpeg.c | 3 +++ 1 file changed, 3 insertions(+) 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;