opt: avoid segfault in av_opt_next() if the class does not have an option list
authorJustin Ruggles <justin.ruggles@gmail.com>
Thu, 8 Nov 2012 23:35:49 +0000 (18:35 -0500)
committerReinhard Tartler <siretart@tauware.de>
Sat, 12 Jan 2013 16:59:40 +0000 (17:59 +0100)
commitdfb7a638e6b9d4b86b7e3c5cf97bdd7621adc5f6
tree92eefcc2877887e6f760d56cfd3a609e0bdbbc22
parent77e6676d3eb3a5161f75103180d4ef3f3c8eb5c7
opt: avoid segfault in av_opt_next() if the class does not have an option list

CC: libav-stable@libav.org
(cherry picked from commit d02202e08a994c6c80f0256ae756698541b59902)

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
libavutil/opt.c