avcodec/vmdav: use av_freep() and reset unpack_buffer_size