Finishes fixing ticket #9190.
Unified · Split
| @@ -2026,6 +2026,7 @@ int ff_parse_mpeg2_descriptor(AVFormatContext *fc, AVStream *st, int stream_type · 2025 unmodified lines | |||
| 2026 | return AVERROR_INVALIDDATA; | 2026 | return AVERROR_INVALIDDATA; |
| 2027 | if (channel_config_code <= 0x8) { | 2027 | if (channel_config_code <= 0x8) { |
| 2028 | st->codecpar->extradata[9] = channels = channel_config_code ? channel_config_code : 2; | 2028 | st->codecpar->extradata[9] = channels = channel_config_code ? channel_config_code : 2; |
| 2029 | AV_WL32(&st->codecpar->extradata[12], 48000); | ||
| 2029 | st->codecpar->extradata[18] = channel_config_code ? (channels > 2) : /* Dual Mono */ 255; | 2030 | st->codecpar->extradata[18] = channel_config_code ? (channels > 2) : /* Dual Mono */ 255; |
| 2030 | st->codecpar->extradata[19] = opus_stream_cnt[channel_config_code]; | 2031 | st->codecpar->extradata[19] = opus_stream_cnt[channel_config_code]; |
| 2031 | st->codecpar->extradata[20] = opus_coupled_stream_cnt[channel_config_code]; | 2032 | st->codecpar->extradata[20] = opus_coupled_stream_cnt[channel_config_code]; |
| @@ -1,4 +1,4 @@ | |||
| 1 | #extradata 0: 30, 0x53be0347 | 1 | #extradata 0: 30, 0x69290482 |
| 2 | #tb 0: 1/90000 | 2 | #tb 0: 1/90000 |
| 3 | #media_type 0: audio | 3 | #media_type 0: audio |
| 4 | #codec_id 0: opus | 4 | #codec_id 0: opus |