Hi,
I use rtp as h265 transport and found that even with 1% of packets loss image became totally distorted (static background became gray and only moving parts are shown). It seems that libde265  has a bug because if I use NVidia HW decoder nvh265dec it decode that same stream without any visible artifacts. The same bug also have libav.

How to reproduce:
1. Use gstreamer:
    ```
    gst-launch-1.0 videotestsrc is-live=true do-timestamp=true ! 'video/x-raw,width=640,height=480,framerate=30/1,format=I420' ! x265enc tune=zerolatency bitrate=2000 ! rtph265pay mtu=1400 aggregate-mode=zero-latency  ! identity drop-probability=0.01 ! queue ! rtph265depay ! h265parse ! libde265dec ! videoconvert ! xvimagesink sync=false
   ```
2. Use libde265-dec265
    ```
    /usr/bin/libde265-dec265 -d /tmp/test.h265
    ```

If I replace in gstreamer pipeline above `libde265dec` with `nvh265dec` all will work without problems

Test data:
[h265_0.01_loss.mkv.gz](https://github.com/strukturag/libde265/files/12640294/h265_0.01_loss.mkv.gz)
[test.h265.gz](https://github.com/strukturag/libde265/files/12640295/test.h265.gz)

SW versions:
GStreamer: 1.22.0
libde265: 1.0.11-1
OS: Debian 12, amd64
Total image distortion even on 1% packet loss
This is a GitHub Issue
repo:libde265
owner:strukturag
Title : Total image distortion even on 1% packet loss
Issue date:

--- start body ---
Hi,
I use rtp as h265 transport and found that even with 1% of packets loss image became totally distorted (static background became gray and only moving parts are shown). It seems that libde265  has a bug because if I use NVidia HW decoder nvh265dec it decode that same stream without any visible artifacts. The same bug also have libav.

How to reproduce:
1. Use gstreamer:
    ```
    gst-launch-1.0 videotestsrc is-live=true do-timestamp=true ! 'video/x-raw,width=640,height=480,framerate=30/1,format=I420' ! x265enc tune=zerolatency bitrate=2000 ! rtph265pay mtu=1400 aggregate-mode=zero-latency  ! identity drop-probability=0.01 ! queue ! rtph265depay ! h265parse ! libde265dec ! videoconvert ! xvimagesink sync=false
   ```
2. Use libde265-dec265
    ```
    /usr/bin/libde265-dec265 -d /tmp/test.h265
    ```

If I replace in gstreamer pipeline above `libde265dec` with `nvh265dec` all will work without problems

Test data:
[h265_0.01_loss.mkv.gz](https://github.com/strukturag/libde265/files/12640294/h265_0.01_loss.mkv.gz)
[test.h265.gz](https://github.com/strukturag/libde265/files/12640295/test.h265.gz)

SW versions:
GStreamer: 1.22.0
libde265: 1.0.11-1
OS: Debian 12, amd64
--- end body ---
