ac3enc: Set max value for mode options correctly
authorJohn Stebbins <stebbins@jetheaddev.com>
Sun, 23 Oct 2011 15:24:26 +0000 (11:24 -0400)
committerJustin Ruggles <justin.ruggles@gmail.com>
Sun, 23 Oct 2011 15:30:54 +0000 (11:30 -0400)
commitddfb8e1adb34cb05010f5953859bcfe13521ceac
treefbae8d3daad9a2c21036ee2aa38bffb1d7474a06
parent1deb66c50cea1891fb8ddcc12ec6960557b93209
ac3enc: Set max value for mode options correctly

for example:
Attempting to set ac3 dsur_mode to "on" results in:
[AC-3 Encoder @ 0x7f508f0a3280] Value 2.000000 for parameter 'dsur_mode' out of range
[AC-3 Encoder @ 0x7f508f0a3280] Error setting option dsur_mode to value on.

Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
libavcodec/ac3enc_opts_template.c