Segfault seeking DVB stream with VA-API on RX580
System information
- OS: Ubuntu 20.04.6 LTS
- GPU:
07:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev e7)
- Kernel version:
Linux 6.3.4-060304-generic #202305241735 SMP PREEMPT_DYNAMIC Wed May 24 17:46:36 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
- Mesa version:
Mesa 23.1.2 - kisak-mesa PPA
- Xserver version (if applicable):
1.20.13
Describe the issue
Seeking to certain points in an h264 DVB stream results in a segfault within vaEndPicture().
To reproduce, run ffmpeg -ss 00:00:06.5 -hwaccel vaapi -i vaapi_segfault.mkv test.mp4
with the attached vaapi_segfault.mkv
. It is consistently reproducible with this graphics hardware.
This also occurs with ffmpeg 6.0 (and mpv using it via mpv-build).
Seeking to other positions (like 00:00:05) does not result in a segfault.
I am unable to reproduce this with a Radeon 6900XT (on a different system, but with the same OS, ffmpeg, and Mesa builds).
Log files as attachment
Screenshots/video files (if applicable)
The attached sample was captured from a DVB-T source without any re-encoding (but with audio stripped). The same segfault can be reproduced when randomly seeking a live DVB broadcast with, say, mpv dvb://