From 3ae91b2a07f9f63104195b601a5123fa0d35cc20 Mon Sep 17 00:00:00 2001 From: arnaldo Date: Fri, 13 Nov 2020 10:46:42 -0300 Subject: [PATCH] fixed build bebop_driver --- 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!");