[Libav-user] sws_scale crash

Carl Eugen Hoyos ceffmpeg at gmail.com
Thu Sep 15 13:07:10 EEST 2016


2016-09-15 2:54 GMT+02:00 YIRAN LI <mrfun.china at 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


More information about the Libav-user mailing list