h264: remove reference if picture frame_num is same