change x264_frame_copy_picture for 2 layer or 3 layer