replace all avcodec_alloc_frame with av_frame_alloc()