AVOptions: in av_opt_find() don't return named constants unless unit is specified.
authorAnton Khirnov <anton@khirnov.net>
Wed, 6 Jul 2011 17:56:58 +0000 (19:56 +0200)
committerAnton Khirnov <anton@khirnov.net>
Fri, 8 Jul 2011 16:34:18 +0000 (18:34 +0200)
commita726d7fd4e0b112b276678ea9da9c9b3097e8b8f
treea65378043b4592ac8d0115a23bbb24c172215db8
parentce558c8f590610fc68596ef0b4ac2a9d299fbcb2
AVOptions: in av_opt_find() don't return named constants unless unit is specified.

That is, unless the caller explicitly asks for them.

Prevents conflict between e.g. the 'loop' option in img2 demuxer and
'loop' flag in AVCodecContext.
libavutil/opt.c