Revision a242ac36 libavfilter/defaults.c

View differences:

libavfilter/defaults.c
88 88
    chans_nb = av_get_channel_layout_nb_channels(channel_layout);
89 89

  
90 90
    per_channel_size = size/chans_nb;
91
    ref->audio->samples_nb = per_channel_size/sample_size;
91
    ref->audio->nb_samples = per_channel_size/sample_size;
92 92

  
93 93
    /* Set the number of bytes to traverse to reach next sample of a particular channel:
94 94
     * For planar, this is simply the sample size.

Also available in: Unified diff