ffmpeg/libswscale
Xi Wang f73f76fd20 swscale: fix NULL checking in sws_alloc_context()
sws_getCachedContext() and sws_getContext() expect sws_alloc_context()
to return NULL when out of memory, as follows.

    if (!(context = sws_alloc_context()))
        return NULL;

This patch fixes sws_alloc_context() to return NULL in that case.

Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2013-01-04 20:44:00 -05:00
..
bfin
ppc miscellaneous typo fixes 2012-12-21 00:18:34 +01:00
sparc
x86 x86: SPLATD: port to cpuflags 2012-11-18 18:34:05 +01:00
Makefile
colorspace-test.c
input.c
libswscale.v
options.c
output.c
rgb2rgb.c
rgb2rgb.h
rgb2rgb_template.c
swscale-test.c
swscale.c miscellaneous typo fixes 2012-12-21 00:18:34 +01:00
swscale.h libswscale: remove unnecessary direct #if LIBSWSCALE_VERSION_MAJOR 2012-11-16 15:04:57 +01:00
swscale_internal.h
swscale_unscaled.c
utils.c swscale: fix NULL checking in sws_alloc_context() 2013-01-04 20:44:00 -05:00
version.h
yuv2rgb.c