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
..
2012-12-21 00:18:34 +01:00
2012-11-18 18:34:05 +01:00
2012-01-12 16:43:17 -08:00
2012-12-21 00:18:34 +01:00
2012-08-03 22:51:05 +02:00