Update deprecated function avcodec_alloc_frame() to av_frame_alloc()