<div dir="ltr">Hi, I met a crash when using sws_scale. So I'd like to see if anyone can help me here.<div><br></div><div>The input is a 1754x789 RGB24 image and I want to scale to 1280x576</div><div><br></div><div>swscontext is created successfully.</div>

<div><br></div><div>I create my own buffer to hold the image data, because it's RGB24 so the byteswith is 5264 (16 aligned) so the whole buffer is 5264x789.</div><div><br></div><div>The input AVFrame for sws_scale is created using avcode_alloc_frame(), and data[0] points to the buffer linesize[0] = 5264, and the output AVFrame is created using avpicture_alloc(rbg24, 1280, 576).</div>

<div><br></div><div>with all above condition, sws_scale crashed. So I'd like to know if there's any special requirement on the input/out buffer of sws_scale?</div><div><br></div><div>Thanks</div></div>