Skip to content
Snippets Groups Projects
Commit 41524e46 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #31474: video: fix macros/placement

parent b21153d0
No related branches found
No related tags found
No related merge requests found
...@@ -145,7 +145,7 @@ int VideoEncoder::openOutput(const char *enc_name, const char *short_name, ...@@ -145,7 +145,7 @@ int VideoEncoder::openOutput(const char *enc_name, const char *short_name,
return -1; return -1;
} }
#if LIBAVCODEC_VERSION_MAJOR < 54 #if (LIBAVCODEC_VERSION_MAJOR < 54)
encoderBufferSize_ = scaledFrameBufferSize_; // seems to be ok encoderBufferSize_ = scaledFrameBufferSize_; // seems to be ok
encoderBuffer_ = (uint8_t*) av_malloc(encoderBufferSize_); encoderBuffer_ = (uint8_t*) av_malloc(encoderBufferSize_);
if (!encoderBuffer_) { if (!encoderBuffer_) {
...@@ -281,8 +281,8 @@ int VideoEncoder::flush() ...@@ -281,8 +281,8 @@ int VideoEncoder::flush()
AVPacket pkt = {}; AVPacket pkt = {};
av_init_packet(&pkt); av_init_packet(&pkt);
#if (LIBAVCODEC_VERSION_MAJOR >= 54)
int ret; int ret;
#if (LIBAVCODEC_VERSION_MAJOR >= 54)
int got_packet; int got_packet;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment