Hi Tristan, On Sun, Jun 12, 2011 at 10:13 PM, Tristan Matthews <[email protected]> wrote: > 2011/6/12 Ronald S. Bultje <[email protected]> >> >> Hi, >> >> On Sun, Jun 12, 2011 at 1:56 PM, Eric Glaser <[email protected]> wrote: >> > Hi, I am having some trouble converting from YUYV to RGB format - it >> > crashes in sws_scale. >> >> Can you provide a backtrace? >> >> > int numRGBBytes = ww * hh * 4; //src width * src height * 4 >> > buffer = malloc (sizeof(uint8_t)*numRGBBytes); >> >> Use av_malloc(), malloc() return values are not aligned and crash >> randomly when using SIMD functions. > > libavcodec/api-example.c uses malloc in a similar context, instead of > av_malloc. Should this be updated?
Yep, absolutely. I'll put it on my todo list. Ronald _______________________________________________ libav-api mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-api
