summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2015-09-16 13:32:37 +0200
committerAlexis Ballier <aballier@gentoo.org>2015-09-16 13:33:12 +0200
commit9bb8ed37fb04ab2797ac42261bb93ef6297cbd4e (patch)
tree4bc40543a52f323e46b06818be427c19515cac54 /sci-electronics/gazebo/files
parentmedia-video/ffmpeg2theora: fix build with ffmpeg git master. (diff)
downloadgentoo-9bb8ed37fb04ab2797ac42261bb93ef6297cbd4e.tar.gz
gentoo-9bb8ed37fb04ab2797ac42261bb93ef6297cbd4e.tar.bz2
gentoo-9bb8ed37fb04ab2797ac42261bb93ef6297cbd4e.zip
sci-electronics/gazebo: fix build with ffmpeg git master.
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'sci-electronics/gazebo/files')
-rw-r--r--sci-electronics/gazebo/files/ffmpeg29.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/sci-electronics/gazebo/files/ffmpeg29.patch b/sci-electronics/gazebo/files/ffmpeg29.patch
new file mode 100644
index 000000000000..df53cc7f1e9c
--- /dev/null
+++ b/sci-electronics/gazebo/files/ffmpeg29.patch
@@ -0,0 +1,22 @@
+Index: gazebo5_5.1.0/gazebo/common/Video.cc
+===================================================================
+--- gazebo5_5.1.0.orig/gazebo/common/Video.cc
++++ gazebo5_5.1.0/gazebo/common/Video.cc
+@@ -147,7 +147,7 @@ bool Video::Load(const std::string &_fil
+ return false;
+ }
+
+- avpicture_alloc(this->pic, PIX_FMT_RGB24, this->codecCtx->width,
++ avpicture_alloc(this->pic, AV_PIX_FMT_RGB24, this->codecCtx->width,
+ this->codecCtx->height);
+
+ this->swsCtx = sws_getContext(
+@@ -156,7 +156,7 @@ bool Video::Load(const std::string &_fil
+ this->codecCtx->pix_fmt,
+ this->codecCtx->width,
+ this->codecCtx->height,
+- PIX_FMT_RGB24,
++ AV_PIX_FMT_RGB24,
+ SWS_BICUBIC, NULL, NULL, NULL);
+
+ if (this->swsCtx == NULL)