diff options
-rw-r--r-- | plugins/ffmpeg/ffmpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |