avcodec_alloc_frame deprecated, changed to av_frame_alloc

avcodec_free_frame  is deprecated, changed to av_frame_free