From 1a571ef8f9b6d513e3cda63b227b3ab2a4855917 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Sat, 23 Nov 2013 13:37:27 +0100 Subject: ffmpeg: fixed non-planar fmt regression --- plugins/ffmpeg/ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/ffmpeg') diff --git a/plugins/ffmpeg/ffmpeg.c b/plugins/ffmpeg/ffmpeg.c index adc86d75..bbd6c891 100644 --- a/plugins/ffmpeg/ffmpeg.c +++ b/plugins/ffmpeg/ffmpeg.c @@ -370,7 +370,7 @@ ffmpeg_read (DB_fileinfo_t *_info, char *bytes, int size) { } } else { - out_size = info->frame->nb_samples * av_get_bytes_per_sample(info->frame->format); + out_size = info->frame->nb_samples * (_info->fmt.bps >> 3) * _info->fmt.channels; memcpy (info->buffer, info->frame->extended_data[0], out_size); } } -- cgit v1.2.3