avcodec/snow: factor ff_snow_get_buffer() out

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>