avformat/oma: Demux oma-encapsulated AAC audio

Signed-off-by: asivery <asivery@protonmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
asivery
2024-09-24 18:58:37 +02:00
committed by Anton Khirnov
parent 37863b92b7
commit 31a63e4e01
3 changed files with 3 additions and 0 deletions

View File

@ -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;