Skip to content

Commit b0cf0a7

Browse files
gsilanorobohacker
authored andcommitted
Bug fix during catkin build (#164)
* Bug fix during catkin build The bug during the catkin build process has been fixed in according to the issue #132 and explained in 78071a14 of the FFmpeg repository * Updated changelog and package files Updated changelog and package file into the bebop_driver folder.
1 parent e00904c commit b0cf0a7

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

bebop_driver/CHANGELOG.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
Changelog for package bebop_driver
33
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44

5+
0.7.1 (2018-05-31)
6+
------------------
7+
* Fixed the bug appearing when you run the catkin build command
8+
* Contributors: Giuseppe Silano
9+
510
0.7.0 (2017-07-29)
611
------------------
712
* SDK 3.12.6 support (except 64bit Ubuntu Xenial, working on fix)

bebop_driver/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<package>
33
<name>bebop_driver</name>
4-
<version>0.7.0</version>
4+
<version>0.7.1</version>
55
<description>ROS driver for Parrot Bebop drone, based on Parrot’s official ARDroneSDK3</description>
66

77
<maintainer email="[email protected]">Mani Monajjemi</maintainer>

bebop_driver/src/bebop_video_decoder.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ bool VideoDecoder::ReallocateBuffers()
133133
boost::lexical_cast<std::string>(codec_ctx_ptr_->width) +
134134
" x " + boost::lexical_cast<std::string>(codec_ctx_ptr_->width));
135135

136-
const uint32_t num_bytes = avpicture_get_size(PIX_FMT_RGB24, codec_ctx_ptr_->width, codec_ctx_ptr_->width);
136+
const uint32_t num_bytes = avpicture_get_size(AV_PIX_FMT_RGB24, codec_ctx_ptr_->width, codec_ctx_ptr_->width);
137137
frame_rgb_ptr_ = av_frame_alloc();
138138

139139
ThrowOnCondition(!frame_rgb_ptr_, "Can not allocate memory for frames!");
@@ -143,12 +143,12 @@ bool VideoDecoder::ReallocateBuffers()
143143
std::string("Can not allocate memory for the buffer: ") +
144144
boost::lexical_cast<std::string>(num_bytes));
145145
ThrowOnCondition(0 == avpicture_fill(
146-
reinterpret_cast<AVPicture*>(frame_rgb_ptr_), frame_rgb_raw_ptr_, PIX_FMT_RGB24,
146+
reinterpret_cast<AVPicture*>(frame_rgb_ptr_), frame_rgb_raw_ptr_, AV_PIX_FMT_RGB24,
147147
codec_ctx_ptr_->width, codec_ctx_ptr_->height),
148148
"Failed to initialize the picture data structure.");
149149

150150
img_convert_ctx_ptr_ = sws_getContext(codec_ctx_ptr_->width, codec_ctx_ptr_->height, codec_ctx_ptr_->pix_fmt,
151-
codec_ctx_ptr_->width, codec_ctx_ptr_->height, PIX_FMT_RGB24,
151+
codec_ctx_ptr_->width, codec_ctx_ptr_->height, AV_PIX_FMT_RGB24,
152152
SWS_FAST_BILINEAR, NULL, NULL, NULL);
153153
}
154154
catch (const std::runtime_error& e)

0 commit comments

Comments
 (0)