Fix #19463 (cherry picked from commit b2ea8558 ) Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>