avoptions: Fix av_opt_flag_is_set
authorMartin Storsjö <martin@martin.st>
Mon, 17 Oct 2011 17:50:02 +0000 (20:50 +0300)
committerMartin Storsjö <martin@martin.st>
Mon, 17 Oct 2011 18:35:41 +0000 (21:35 +0300)
commit299234a0a9e7d96d4cfe7ec88aac007bf4a6bbff
treeb6f8e5d7066944c18dd0f10448f4a303366b0c0c
parent2e69dd66b6e47ba33f9bb6696e9c587d3057034c
avoptions: Fix av_opt_flag_is_set

With the changes in 3b3ea34655db02d9cd9ea1a4122e920a7fdec602,
"Remove all uses of deprecated AVOptions API", av_opt_flag_is_set
was broken, since it now uses av_opt_find, which doesn't return
named constants unless a unit to look for the constant in is given.

This broke enabling LATM encapsulated AAC output in RTP.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavutil/opt.c