From bebf819a00c6e7bc4434f75a9f73eb6960d312fa Mon Sep 17 00:00:00 2001 From: Darby Johnston Date: Mon, 16 Sep 2024 18:26:57 -0700 Subject: [PATCH] Build fixes --- cmake/SuperBuild/BuildOpenImageIO.cmake | 2 +- lib/toucan/FFmpegRead.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/SuperBuild/BuildOpenImageIO.cmake b/cmake/SuperBuild/BuildOpenImageIO.cmake index df8f0d4..28a2f4f 100644 --- a/cmake/SuperBuild/BuildOpenImageIO.cmake +++ b/cmake/SuperBuild/BuildOpenImageIO.cmake @@ -23,7 +23,7 @@ endif() if(toucan_Freetype) list(APPEND OpenImageIO_DEPS Freetype) endif() -if(toucan_FFMPEG) +if(toucan_FFmpeg) list(APPEND OpenImageIO_DEPS FFmpeg) endif() if(toucan_OpenColorIO) diff --git a/lib/toucan/FFmpegRead.cpp b/lib/toucan/FFmpegRead.cpp index 51fb0e2..783e9f1 100644 --- a/lib/toucan/FFmpegRead.cpp +++ b/lib/toucan/FFmpegRead.cpp @@ -47,12 +47,12 @@ namespace toucan class Packet { public: - Packet::Packet() + Packet() { p = av_packet_alloc(); } - Packet::~Packet() + ~Packet() { av_packet_free(&p); }