1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00
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 Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat 2012-10-08 07:13:26 +02:00
ppc miscellaneous typo fixes 2012-12-21 00:18:34 +01:00
sparc Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat 2012-10-08 07:13:26 +02:00
x86 x86: SPLATD: port to cpuflags 2012-11-18 18:34:05 +01:00
colorspace-test.c testprogs: Remove unused includes 2012-08-29 00:23:51 +03:00
input.c swscale: do not forget to swap data in formats with different endianness 2012-10-31 17:53:57 +01:00
libswscale.v swscale: Do not make ff_ symbols globally visible. 2012-10-10 02:08:01 +02:00
Makefile Create version.h headers for libraries that lack them 2012-07-04 15:10:06 +02:00
options.c Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat 2012-10-08 07:13:26 +02:00
output.c sws: do not use av_pix_fmt_descriptors directly. 2012-10-12 12:45:38 +02:00
rgb2rgb_template.c x86: mmx2 ---> mmxext in comments and messages 2012-10-31 00:37:42 +01:00
rgb2rgb.c x86: mmx2 ---> mmxext in comments and messages 2012-10-31 00:37:42 +01:00
rgb2rgb.h rgb2rgb: rgb12to15() 2012-01-12 16:43:17 -08:00
swscale_internal.h x86: mmx2 ---> mmxext in variable names 2012-10-31 00:37:42 +01:00
swscale_unscaled.c swscale: support gray to 9bit and 10bit formats 2012-10-30 12:02:41 +01:00
swscale-test.c sws: do not use av_pix_fmt_descriptors directly. 2012-10-12 12:45:38 +02:00
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
utils.c swscale: fix NULL checking in sws_alloc_context() 2013-01-04 20:44:00 -05:00
version.h x86: build: replace mmx2 by mmxext 2012-08-03 22:51:05 +02:00
yuv2rgb.c Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat 2012-10-08 07:13:26 +02:00