[FFmpeg-devel] [PATCH 2/2] lavf/mpeg: Add G.711 A law support
Jun Zhao
mypopydev at gmail.com
Sat Mar 18 13:35:54 EET 2023
Add G.711 A law support
Signed-off-by: Jun Zhao <barryjzhao at tencent.com>
---
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;
--
2.25.1
More information about the ffmpeg-devel
mailing list