avoptions: Check the return value from av_get_number