ffmpeg | branch: master | James Almer <jamr...@gmail.com> | Wed Jan  1 12:10:17 
2025 -0300| [fb59995b88c96fdfd0e968dc1a68ac94ceaf1789] | committer: James Almer

avformat/flvdec: set Opus sample rate

Fixes parsing Opus streams when no opus decoder is present.

Signed-off-by: James Almer <jamr...@gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fb59995b88c96fdfd0e968dc1a68ac94ceaf1789
---

 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;

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

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

Reply via email to