mirror of https://github.com/FFmpeg/FFmpeg.git
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>pull/8/head
parent
3b81bba3bc
commit
f73f76fd20
1 changed files with 4 additions and 2 deletions
Loading…
Reference in new issue