Crash in ff_mpv_alloc_pic_accessories
Crash issue with DVD playback. Stacktrace
dxva2 native is used.
I have not been able to reproduce it.
Did not occur before the last big FFmpeg update. So possibly started after buffer pool commit?
I see some asserts in alloc_picture regarding dimensions. Maybe a video size change can trigger it?
From a user crash dump:
It seems
pic->f is null?
pic->f is used before this place already in alloc_picture, which clearly didn't crash.
In general, I'm not interested in chasing random ffmpeg crashes without a local reproduction. Adding random pointer checks is just blind guessing and a cat and mouse game, as the above stack trace shows.
I understand. The crash reporter redirects to a page asking for samples/feedback for reproduction, but unfortunately I rarely get any useful info.
It appears to be a similar issue as the hevc_refs issue.
For that I indeed added a pointer check that prevents the crash: https://github.com/clsid2/FFmpeg/blob/8c2013b8017b109b069836aa3db16f2eb1a897e2/libavcodec/hevc/refs.c#L227