avfilter/formats: Alloc NULL fmts in SET_COMMON_FORMATS()
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 21 Nov 2014 21:15:32 +0000 (22:15 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 21 Nov 2014 21:15:32 +0000 (22:15 +0100)
commitb9ffafbfcc0f8aaffc9de3919a1d295dbe6d53f7
tree4b59a03851ba1135f6e77dcb70ed79737b14c924
parent75819fafd8213875af2bfbe5ea821ae5b8d419f9
avfilter/formats: Alloc NULL fmts in SET_COMMON_FORMATS()

This avoids null pointer dereferences in case memory allocation has failed

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/formats.c