Dear:

In doc/example/resampling_audio.c

/* buffer is going to be directly written to a rawaudio file, no alignment
*/
dst_nb_channels = av_get_channel_layout_nb_channels(dst_ch_layout);
ret = av_samples_alloc_array_and_samples(&dst_data, &dst_linesize,
dst_nb_channels,
                                         dst_nb_samples, dst_sample_fmt, 0);

if the comment "no alignment" is right, we should change the last parameter
of  av_samples_alloc_array_and_samples() from 0 to 1.

patch is attached.

Attachment: align_fix.diff
Description: Binary data

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to