Empty Message
From 35d8ce6136fa4cf128395aeed56ea57c0496ef3a Mon Sep 17 00:00:00 2001
From: asivery <asiv...@protonmail.com>
Date: Tue, 24 Sep 2024 18:58:37 +0200
Subject: [PATCH] avformat/oma: Demux oma-encapsulated AAC audio

Signed-off-by: asivery <asiv...@protonmail.com>
---
 libavformat/oma.c    | 1 +
 libavformat/oma.h    | 1 +
 libavformat/omadec.c | 1 +
 3 files changed, 3 insertions(+)

diff --git a/libavformat/oma.c b/libavformat/oma.c
index 7282d464aa..68482fca74 100644
--- a/libavformat/oma.c
+++ b/libavformat/oma.c
@@ -28,6 +28,7 @@ const uint16_t ff_oma_srate_tab[8] = { 320, 441, 480, 882, 960, 0 };
 const AVCodecTag ff_oma_codec_tags[] = {
     { AV_CODEC_ID_ATRAC3,      OMA_CODECID_ATRAC3    },
     { AV_CODEC_ID_ATRAC3P,     OMA_CODECID_ATRAC3P   },
+    { AV_CODEC_ID_AAC,         OMA_CODECID_AAC       },
     { AV_CODEC_ID_MP3,         OMA_CODECID_MP3       },
     { AV_CODEC_ID_PCM_S16BE,   OMA_CODECID_LPCM      },
     { AV_CODEC_ID_ATRAC3PAL,   OMA_CODECID_ATRAC3PAL },
diff --git a/libavformat/oma.h b/libavformat/oma.h
index 1a8e16f6d6..d9c7795d5b 100644
--- a/libavformat/oma.h
+++ b/libavformat/oma.h
@@ -34,6 +34,7 @@
 enum {
     OMA_CODECID_ATRAC3  = 0,
     OMA_CODECID_ATRAC3P = 1,
+    OMA_CODECID_AAC     = 2,
     OMA_CODECID_MP3     = 3,
     OMA_CODECID_LPCM    = 4,
     OMA_CODECID_WMA     = 5,
diff --git a/libavformat/omadec.c b/libavformat/omadec.c
index 86d3e7202f..552a37df18 100644
--- a/libavformat/omadec.c
+++ b/libavformat/omadec.c
@@ -511,6 +511,7 @@ static int oma_read_header(AVFormatContext *s)
         st->codecpar->bit_rate    = samplerate * framesize / (2048 / 8);
         avpriv_set_pts_info(st, 64, 1, samplerate);
         break;
+    case OMA_CODECID_AAC:
     case OMA_CODECID_MP3:
         ffstream(st)->need_parsing = AVSTREAM_PARSE_FULL_RAW;
         framesize = 1024;
-- 
2.43.0

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to