[FFmpeg-devel] Patch: aligin fix

Jack Waller ffmpeg at gmail.com
Thu Apr 8 05:49:36 EEST 2021


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: align_fix.diff
Type: application/octet-stream
Size: 761 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210408/8c0525d3/attachment.obj>


More information about the ffmpeg-devel mailing list