File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -85,8 +85,11 @@ extern "C" {
8585 ((AVIF_VERSION_MAJOR * 1000000 ) + (AVIF_VERSION_MINOR * 10000 ) + (AVIF_VERSION_PATCH * 100 ) + AVIF_VERSION_DEVEL)
8686
8787typedef int avifBool;
88- #define AVIF_TRUE 1
89- #define AVIF_FALSE 0
88+ enum avifTrueFalse
89+ {
90+ AVIF_FALSE = 0 ,
91+ AVIF_TRUE = 1
92+ };
9093
9194#define AVIF_DIAGNOSTICS_ERROR_BUFFER_SIZE 256
9295
Original file line number Diff line number Diff line change @@ -3984,15 +3984,15 @@ static avifResult avifParseMovieBox(avifDecoderData * data,
39843984static avifProperty * avifMetaCreateProperty (avifMeta * meta , const char * propertyType )
39853985{
39863986 avifProperty * metaProperty = avifArrayPush (& meta -> properties );
3987- AVIF_CHECK (metaProperty );
3987+ AVIF_CHECKERR (metaProperty , NULL );
39883988 memcpy (metaProperty -> type , propertyType , 4 );
39893989 return metaProperty ;
39903990}
39913991
39923992static avifProperty * avifDecoderItemAddProperty (avifDecoderItem * item , const avifProperty * metaProperty )
39933993{
39943994 avifProperty * itemProperty = avifArrayPush (& item -> properties );
3995- AVIF_CHECK (itemProperty );
3995+ AVIF_CHECKERR (itemProperty , NULL );
39963996 * itemProperty = * metaProperty ;
39973997 return itemProperty ;
39983998}
You can’t perform that action at this time.
0 commit comments