simplify stash pop bs

reviewed at: https://rbcommons.com/s/OpenH264/r/464/

use function instead of several lines code