Fix stereo output bug with ffmpeg test output

This commit is contained in:
jp9000 2014-02-24 01:51:39 -07:00
parent 6c2d067e05
commit a1a1f1a64c

View File

@ -597,7 +597,7 @@ static void receive_audio(void *param, const struct audio_data *frame)
frame_size_bytes = (size_t)data->frame_size * data->audio_size;
for (size_t i = 0; i < data->audio_planes; i++)
circlebuf_push_back(&data->excess_frames[i], in.data[0],
circlebuf_push_back(&data->excess_frames[i], in.data[i],
in.frames * data->audio_size);
while (data->excess_frames[0].size >= frame_size_bytes) {