Skip to content

Commit

Permalink
LSMASHAudioSource: fix the channel layout initialization (#63)
Browse files Browse the repository at this point in the history
Regression from 2df8afd.
  • Loading branch information
Asd-g committed Apr 6, 2024
1 parent d77587d commit e81bd1f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions common/libavsmash.c
Original file line number Diff line number Diff line change
Expand Up @@ -925,9 +925,7 @@ void update_configuration
lsmash_audio_summary_t *audio = (lsmash_audio_summary_t *)summary;
codecpar->sample_rate = config->queue.sample_rate ? config->queue.sample_rate : audio->frequency;
codecpar->bits_per_coded_sample = config->queue.bits_per_sample ? config->queue.bits_per_sample : audio->sample_size;
char buf[128];
int n = sprintf(buf, "%d", config->queue.channels ? config->queue.channels : audio->channels);
av_channel_layout_from_string(&codecpar->ch_layout, buf);
av_channel_layout_default(&codecpar->ch_layout, config->queue.channels ? config->queue.channels : audio->channels);
}
if( codec->id == AV_CODEC_ID_DTS )
{
Expand Down

0 comments on commit e81bd1f

Please sign in to comment.