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!");