diff options
author | James Almer <jamrial@gmail.com> | 2021-04-15 10:03:05 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-04-16 11:08:40 -0300 |
commit | c1fd4033dca192d709ff01203aa833256df5b70f (patch) | |
tree | 209696daf9491f9bce5efc76c463333dec49787e /libavformat/mpegts.c | |
parent | bc010612318ea0bbd31d4b92cbb90ccfbed09631 (diff) |
avformat/mpegts: add missing sample_rate value to Opus extradata
Finishes fixing ticket #9190.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r-- | libavformat/mpegts.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 6e0d9d7496..2c3b9be434 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -2026,6 +2026,7 @@ int ff_parse_mpeg2_descriptor(AVFormatContext *fc, AVStream *st, int stream_type return AVERROR_INVALIDDATA; if (channel_config_code <= 0x8) { st->codecpar->extradata[9] = channels = channel_config_code ? channel_config_code : 2; + AV_WL32(&st->codecpar->extradata[12], 48000); st->codecpar->extradata[18] = channel_config_code ? (channels > 2) : /* Dual Mono */ 255; st->codecpar->extradata[19] = opus_stream_cnt[channel_config_code]; st->codecpar->extradata[20] = opus_coupled_stream_cnt[channel_config_code]; |