Replace all uses of avcodec_free_frame with av_frame_free().