avcodec/snow: only allocate space for edges when encoding