build: use av_frame_alloc instead of deprecated avcodec_alloc_frame

also used in LibAVFilter