summaryrefslogtreecommitdiff
path: root/plugins/ffmpeg
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-11-23 13:37:27 +0100
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-11-23 13:37:27 +0100
commit1a571ef8f9b6d513e3cda63b227b3ab2a4855917 (patch)
tree172ee72875f4a087f0327e5361413ec782dda335 /plugins/ffmpeg
parentb423aead38823dcce46f80f5c5028f121b60354e (diff)
ffmpeg: fixed non-planar fmt regression
Diffstat (limited to 'plugins/ffmpeg')
-rw-r--r--plugins/ffmpeg/ffmpeg.c2
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);
}
}