[FFmpeg-trac] #3240(undetermined:new): sws_getCachedContext() fail on very small resize to(below 8x8)
FFmpeg
trac at avcodec.org
Tue Dec 24 16:08:37 CET 2013
#3240: sws_getCachedContext() fail on very small resize to(below 8x8)
--------------------------------------+----------------------------------
Reporter: vovach777 | Type: defect
Status: new | Priority: normal
Component: undetermined | Version: 2.1.1
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
--------------------------------------+----------------------------------
Summary of the bug:
function sws_getCachedContext() fail on very small resize to(below 8x8)
How to reproduce:
{{{
FF_API int ff_scale(ScaleContext ctx)
{
//1920x1080 -> BGRA 8x8
//SWS_FAST_BILINEAR => raise devide by ziro
//SWS_BILINEAR => returns - NULL;
ctx->_sws = sws_getCachedContext(ctx->_sws,
ctx->src_width,ctx->src_height,ctx->src_format,
ctx->dst_width,ctx->dst_height,ctx->dst_format,
SWS_FAST_BILINEAR,NULL,NULL,NULL);
if (!ctx->_sws)
return -1;
return sws_scale(ctx->_sws, ctx->src_data,
ctx->src_linesize, 0, ctx->src_height, ctx->dst_data,
ctx->dst_linesize);
}
ffmpeg version
#define FFMPEG_CONFIGURATION "--enable-cross-compile
--yasmexe=yasm-1.2.0-win32.exe --disable-avdevice --disable-doc --disable-
hwaccels --arch=x86 --target-os=win32 --disable-optimizations --assert-
level=2 --enable-debug=3 --disable-programs --disable-w32threads
--prefix='C:/ffmpeg32/dev'"
version 2.1
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/3240>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list