the previous documentation indicated how many bytes are read from the input, not how many samples are read. --- libavcodec/avcodec.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index 4f24f72..4e80de8 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -4207,7 +4207,7 @@ void avsubtitle_free(AVSubtitle *sub); * The number of samples read from this buffer is frame_size*channels, * both of which are defined in avctx. * For PCM audio the number of samples read from samples is equal to - * buf_size * input_sample_size / output_sample_size. + * buf_size / (channels * output_sample_size). * @return On error a negative value is returned, on success zero or the number * of bytes used to encode the data read from the input buffer. */ -- 1.7.1 _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
