Fix FFmpeg for non-planar formats

This commit is contained in:
Christopher Snowhill 2019-10-15 19:54:11 -07:00
parent 9c8dc69e4b
commit 2b1de051e2

View File

@ -657,7 +657,7 @@ static void copy_samples(ffmpeg_codec_data *data, sample_t *outbuf, int samples_
ibuf = data->frame->extended_data;
}
else {
ibuf = data->frame->data;
ibuf = data->frame->data[0];
}
switch (data->codecCtx->sample_fmt) {