mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
ffplay: fix planar audio
This caused ALAC to fail since the last merge Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
7e17389c1e
commit
cdafec69ce
2
ffplay.c
2
ffplay.c
@ -1980,7 +1980,7 @@ static int audio_decode_frame(VideoState *is, double *pts_ptr)
|
||||
}
|
||||
|
||||
if (is->swr_ctx) {
|
||||
const uint8_t *in[] = { is->frame->data[0] };
|
||||
const uint8_t **in = is->frame->extended_data;
|
||||
uint8_t *out[] = {is->audio_buf2};
|
||||
int out_count = sizeof(is->audio_buf2) / is->audio_tgt.channels / av_get_bytes_per_sample(is->audio_tgt.fmt);
|
||||
if (wanted_nb_samples != is->frame->nb_samples) {
|
||||
|
Loading…
Reference in New Issue
Block a user