From fb01852268b1ec41d253813110603ffb5f5ce2fc Mon Sep 17 00:00:00 2001 From: Antoan Bekele Date: Thu, 16 Mar 2023 23:01:28 +0000 Subject: [PATCH] noetic fix --- bebop_driver/src/bebop_video_decoder.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bebop_driver/src/bebop_video_decoder.cpp b/bebop_driver/src/bebop_video_decoder.cpp index 9e2e500..0c78225 100644 --- a/bebop_driver/src/bebop_video_decoder.cpp +++ b/bebop_driver/src/bebop_video_decoder.cpp @@ -90,11 +90,11 @@ bool VideoDecoder::InitCodec() codec_ctx_ptr_->width = 0; codec_ctx_ptr_->height = 0; - if (codec_ptr_->capabilities & CODEC_CAP_TRUNCATED) + if (codec_ptr_->capabilities & AV_CODEC_CAP_TRUNCATED) { - codec_ctx_ptr_->flags |= CODEC_FLAG_TRUNCATED; + codec_ctx_ptr_->flags |= AV_CODEC_FLAG_TRUNCATED; } - codec_ctx_ptr_->flags2 |= CODEC_FLAG2_CHUNKS; + codec_ctx_ptr_->flags2 |= AV_CODEC_FLAG2_CHUNKS; frame_ptr_ = av_frame_alloc(); ThrowOnCondition(!frame_ptr_ , "Can not allocate memory for frames!");