avcodec/snow: factor ff_snow_get_buffer() out