mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-04 02:16:01 -05:00
[transcode] Fix missing channel number for newer ffmpeg (closes #241)
This commit is contained in:
parent
3fba838337
commit
7d1d52e8f0
@ -1671,6 +1671,9 @@ transcode_raw2frame(uint8_t *data, size_t size)
|
||||
frame->nb_samples = size / 4;
|
||||
frame->format = AV_SAMPLE_FMT_S16;
|
||||
frame->channel_layout = AV_CH_LAYOUT_STEREO;
|
||||
#ifdef HAVE_FFMPEG
|
||||
frame->channels = 2;
|
||||
#endif
|
||||
frame->pts = AV_NOPTS_VALUE;
|
||||
frame->sample_rate = 44100;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user