[transcode] Fix missing channel number for newer ffmpeg (closes #241)

This commit is contained in:
ejurgensen 2016-03-20 19:22:16 +01:00
parent 3fba838337
commit 7d1d52e8f0
1 changed files with 3 additions and 0 deletions

View File

@ -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;