The different behavior between iPhone7Plus and iPhoneXS when decoding hevc video

I am developing a App which receive video stream from camera and display it on the screen.It receives elementary H.265 stream and decodes it with vtdecompresssession .The H.265 stream is in GDR(Gradual decoder refresh) mode, some i slices and vps pps sps will appera periodically . When I disconnect and reconnect the camera , decode session cannot decode the stream with error code 12909.It is fine because i can recreate a decode session and config it with the vps pps sps that come later.The problem is that, after I recreate and config the decode session with vps pps sps , iPhone7Plus can decode the stream,but iPhone X , iPhone XS , iPHONE XSMax keep making 12909 error. All devices I tested was run at iOS 12. How can i slove this?any reply would be appreciated.

The different behavior between iPhone7Plus and iPhoneXS when decoding hevc video
 
 
Q