2016-09-15 2:54 GMT+02:00 YIRAN LI <mrfun.ch...@gmail.com>: > Does that mean, as long as sws_scale is called, 16 extra > bytes must be allocated?
Yes, this is always needed for input data in FFmpeg. > what values should be set in these bytes? The additional bytes should be initialized to 0 (I believe this is not necessary for all operations, but the cost should be negligible). > does the data as whole (real data + 16 bytes) need to > be aligned? Yes, but it should not be possible to alloc memory in FFmpeg that is not aligned (as all data has to be aligned). Carl Eugen _______________________________________________ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user