AVFormatWriter: silence some depreciated compiler warnings

avcodec_free_frame() -> av_frame_free()
avcodec_alloc_frame() -> av_frame_alloc()