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>
Sat, 13 Aug 2016 11:08:57 +0000 (13:08 +0200)
commit6e6609f5dd61e2b195748b16d46964bd97d77c80
tree4bd363f6cc20a3cbbe1d5403d529bb3da912b759
parent6e13acaadd5ce44068c090675d0f84dc0d73b152
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