changed free frame function to use av_free instead of free