[ffmpeg/f40] Backport hevecdec fix