avutil/mem: Fix flipped condition
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 9 Aug 2013 11:37:18 +0000 (13:37 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 9 Aug 2013 11:53:25 +0000 (13:53 +0200)
commit211374e52a933a2b3f21a4d6e66e9f1b0623e44e
tree9ebe12b8d4e5062be8a1f6521266ae94daf196fe
parent1bf2461765c58aad5829ea45a2885d11f50b73f0
avutil/mem: Fix flipped condition

Fixes return code and later null pointer dereference

Found-by: Laurent Butti <laurentb@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit c94f9e854228e0ea00e1de8769d8d3f7cab84a55)

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