mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
af_ashowinfo: fix plane size computation for planar layout formats
+10l.
This commit is contained in:
parent
22137bb5c2
commit
bca8bd99d0
@ -46,9 +46,10 @@ static void filter_samples(AVFilterLink *inlink, AVFilterBufferRef *samplesref)
|
|||||||
char chlayout_str[128];
|
char chlayout_str[128];
|
||||||
int plane;
|
int plane;
|
||||||
int linesize =
|
int linesize =
|
||||||
av_get_channel_layout_nb_channels(samplesref->audio->channel_layout) *
|
|
||||||
samplesref->audio->nb_samples *
|
samplesref->audio->nb_samples *
|
||||||
av_get_bytes_per_sample(samplesref->format);
|
av_get_bytes_per_sample(samplesref->format);
|
||||||
|
if (!samplesref->audio->planar) /* packed layout */
|
||||||
|
linesize *= av_get_channel_layout_nb_channels(samplesref->audio->channel_layout);
|
||||||
|
|
||||||
for (plane = 0; samplesref->data[plane] && plane < 8; plane++) {
|
for (plane = 0; samplesref->data[plane] && plane < 8; plane++) {
|
||||||
uint8_t *data = samplesref->data[plane];
|
uint8_t *data = samplesref->data[plane];
|
||||||
|
Loading…
Reference in New Issue
Block a user