Skip to content

Commit

Permalink
audio bug fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Seng-Jik committed Feb 15, 2022
1 parent a02388b commit 6458275
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cpymo/cpymo_audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,9 @@ error_t cpymo_audio_channel_play_file(
(int)info->freq,
stream->codecpar->channels == 1 ?
AV_CH_LAYOUT_MONO :
stream->codecpar->channel_layout,
(stream->codecpar->channel_layout == 0 ?
av_get_default_channel_layout(stream->codecpar->channels) :
stream->codecpar->channel_layout),
stream->codecpar->format,
stream->codecpar->sample_rate,
0, NULL);
Expand Down

0 comments on commit 6458275

Please sign in to comment.