FreeBSD Port: graphics/libheif: Switching to the enum PredStructure is required

Tatsuki Makino <[email protected]>
Newsgroups gmane.os.freebsd.devel.ports
Message-ID <SI2PR01MB5036D7E5C0D4BF9ADCDCD611FA48A@SI2PR01MB5036.apcprd01.prod.exchangelabs.com>
Hello.

It seems that after updating svt-av1 from 4.0.1 to 4.1.0, patches will be required for the following file.
${WRKSRC}/libheif/plugins/encoder_svt.cc

The following error occurs.
/wrkdirs/usr/ports/graphics/libheif/work/libheif-1.21.2/libheif/plugins/encoder_svt.cc:850:37: error: assigning to 'PredStructure' from incompatible type 'int'
   850 |         svt_config.pred_structure = 2; // RANDOM_ACCESS
       |                                     ^
1 error generated.

It seems that here, we should use PredStructure::RANDOM_ACCESS instead of 2.
The value for that is in the file at the following path.
/usr/local/include/svt-av1/EbSvtAv1Enc.h

Regards.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.