avisynth: Move to av_new_packet/av_free_packet.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
avisynth: make avs_library statically allocated.

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