[Libav-user] sws_scale crash
mrfun.china at gmail.com
Mon May 20 02:05:17 CEST 2013
Hi, you can check if pixel format ever changes between frames. Once up a
time I also had a crash problem, which I later found is caused by pixel
2013/5/19 yy-zed <samhalligan15 at gmail.com>
> Hi Guys,
> I'm trying to figure out to cause of constant crashes on sws_scale calls.
> I'm reading in a video frame, decoding it, then trying to scale, encode and
> write to video. Reading the frame and decoding it seem to be working fine,
> but sws_scale keeps crashing.
> Here's where I set the context:
> p_out_video_ctx->p_sws_ctx = sws_getContext(p_codec_ctx->width,
> p_codec_ctx->height, p_codec_ctx->pix_fmt,
> p_out_video_ctx->i_vwidth, p_out_video_ctx->i_vheight,
> AV_PIX_FMT_YUV420P, SWS_BICUBIC, NULL, NULL, NULL);
> and here's where I make the call to scale the frame:
> (uint8_t const * const *)
> p_in_video_ctx->p_video_frame->linesize, 0,
> here1 is printed, but the program exits with error code "-1073741819"
> printing here2. Google tells me thats a general access memory violation.
> Has anybody got any ideas where I'm going wrong?
> View this message in context:
> Sent from the libav-users mailing list archive at Nabble.com.
> Libav-user mailing list
> Libav-user at ffmpeg.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user