Fix version check for av_frame_copy()