Build fix for HAVE_AVSUBTITLERECT_PICT case.
authorCarl Hetherington <cth@carlh.net>
Sat, 20 Jan 2024 15:20:50 +0000 (16:20 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 20 Jan 2024 15:20:50 +0000 (16:20 +0100)
src/lib/ffmpeg_decoder.cc

index dcad184fa81ea17ea3ddc5e4a0cdf7b9052984db..0d43156c0cdefd3fcd83842c47a0b8ef27bf916b 100644 (file)
@@ -720,7 +720,7 @@ FFmpegDecoder::process_bitmap_subtitle (AVSubtitleRect const * rect)
        /* sub_p looks up into a BGRA palette which is at rect->pict.data[1];
           (i.e. first byte B, second G, third R, fourth A)
        */
-       auto const palette = rect->pict.data[1];
+       auto const* palette = rect->pict.data[1];
 #else
        /* Start of the first line in the subtitle */
        auto sub_p = rect->data[0];