libavutil/opt: Small bugfix in example.
authorKacper Michajłow <kasper93@gmail.com>
Sat, 23 Jul 2016 19:43:06 +0000 (21:43 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 1 Aug 2016 15:29:14 +0000 (17:29 +0200)
commitcaf32880fdf9a06c03c65a6abef648d12ba99a1d
treedbd3e623efb632a386e62e989a71508a3b18dada
parent7c01fa962e7fb08754f191a3840af56654fa0841
libavutil/opt: Small bugfix in example.

Fix const corectness and zero init the struct. This example code would actually crash when initializing string.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 69630f4d304a4e35d90957d6a170744af87cbf93)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavutil/opt.h