fn pic_num(frame_num: u32, cur_frame_num: u32, max_frame_num: i32) -> i32
FrameNumWrap(= フレームの PicNum、8.2.4.1)。現在の frame_num より大きいものは前の周回。