avcodec/snow: only allocate space for edges when encoding

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