use av_frame_alloc() if lavc is >= 55.28.1