[FFmpeg-devel] [PATCH 1/2] avformat/flvdec: set Opus sample rate
James Almer
jamrial at gmail.com
Wed Jan 1 17:16:34 EET 2025
Fixes parsing Opus streams when no opus decoder is present.
Signed-off-by: James Almer <jamrial at gmail.com>
---
libavformat/flvdec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 018249d1fe..3173f010e4 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -354,6 +354,7 @@ static void flv_set_audio_codec(AVFormatContext *s, AVStream *astream,
return;
case MKBETAG('O', 'p', 'u', 's'):
apar->codec_id = AV_CODEC_ID_OPUS;
+ apar->sample_rate = 48000;
return;
case MKBETAG('.', 'm', 'p', '3'):
apar->codec_id = AV_CODEC_ID_MP3;
--
2.47.1
More information about the ffmpeg-devel
mailing list