lavu/opt: validate range before dereference
authorLukasz Marek <lukasz.m.luki@gmail.com>
Fri, 4 Apr 2014 17:28:45 +0000 (19:28 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 4 Apr 2014 20:09:57 +0000 (22:09 +0200)
commit3aac5fcfa9d3748659d78ab2a66d0ccce22cfd4f
tree6de9b720b672195f96a7aaf05f6f4a0d1b88ee87
parent506064ed10f6c0453f3b1fa8819cdc37696816df
lavu/opt: validate range before dereference

This change make error handling simplier.
av_opt_freep_ranges may be called when some ranges are NULL,
for example after memory allocation fail.

Signed-off-by: Lukasz Marek <lukasz.m.luki@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/opt.c