Stop using deprecated function avcodec_alloc_frame
It is replaced by av_frame_alloc with no functionality changes in latest libav and ffmpeg