On date Wednesday 2009-04-15 12:43:00 -0500, Brian McKinnon encoded:
> Hello,
>
> I'm having a bit of trouble with my SwsContext. The sws_getContext call
> is returning NULL when I attempt use an image of size 2480x720. I'm
> calling the function using:
>
> SwsContext * swsContext = sws_getContext(m_codecCtx->width,
> m_codecCtx->height, m_codecCtx->pix_fmt,
> m_codecCtx->width, m_codecCtx->height, PIX_FMT_RGB24,
> SWS_POINT, NULL, NULL, NULL);
>
> Everything is working fine on my 1240x720 image, so I don't know if I am
> running up against a hard size limit or something.
Exactly that, check swscale_internal.h:36
#define VOFW 2048
#define VOF (VOFW*2)
and swscale.c:2460:
if(srcW > VOFW || dstW > VOFW){
av_log(NULL, AV_LOG_ERROR, "swScaler: Compile-time maximum width is
"AV_STRINGIFY(VOFW)" change VOF/VOFW and recompile\n");
return NULL;
}
And that value should be configurable, patch for that is welcome.
> Any help would be greatly appreciated,
[...]
Regards.
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user