avoptions: Check the return value from av_get_number
authorMartin Storsjö <martin@martin.st>
Sun, 22 May 2011 18:34:49 +0000 (21:34 +0300)
committerMartin Storsjö <martin@martin.st>
Sun, 22 May 2011 19:06:17 +0000 (22:06 +0300)
commit8089b7fa8c5b5a48cc7101daa4be891d0ead5a5e
treee589859d9dc795b5770dd2e0a185343b77c3c17d
parent422b2362fc83ed3a75532ea68a6d167c52f447ec
avoptions: Check the return value from av_get_number

This avoids doing a division by zero if the option wasn't found,
or wasn't an option of an appropriate type.

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