diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-04-22 14:25:03 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-04-22 14:25:03 +0100 |
commit | 5e8702bcbbed438e6c6cce023e7ef0cc9baa3e02 (patch) | |
tree | b041acef19bb9ae66c228d5c9d34d1e00aeb2b95 /sci-electronics/gazebo/files | |
parent | 5cfef3c94cd7e82136c69a0322f5ba21f7e64632 (diff) |
gentoo resync : 22.04.2018
Diffstat (limited to 'sci-electronics/gazebo/files')
-rw-r--r-- | sci-electronics/gazebo/files/ffmpeg4.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/sci-electronics/gazebo/files/ffmpeg4.patch b/sci-electronics/gazebo/files/ffmpeg4.patch new file mode 100644 index 000000000000..7bd8777dea3f --- /dev/null +++ b/sci-electronics/gazebo/files/ffmpeg4.patch @@ -0,0 +1,30 @@ +Index: gazebo-9.0.0/gazebo/common/AudioDecoder.cc +=================================================================== +--- gazebo-9.0.0.orig/gazebo/common/AudioDecoder.cc ++++ gazebo-9.0.0/gazebo/common/AudioDecoder.cc +@@ -255,8 +255,8 @@ bool AudioDecoder::SetFile(const std::st + return false; + } + +- if (this->codec->capabilities & CODEC_CAP_TRUNCATED) +- this->codecCtx->flags |= CODEC_FLAG_TRUNCATED; ++ if (this->codec->capabilities & AV_CODEC_CAP_TRUNCATED) ++ this->codecCtx->flags |= AV_CODEC_FLAG_TRUNCATED; + + // Open codec + if (avcodec_open2(this->codecCtx, this->codec, nullptr) < 0) +Index: gazebo-9.0.0/gazebo/common/Video.cc +=================================================================== +--- gazebo-9.0.0.orig/gazebo/common/Video.cc ++++ gazebo-9.0.0/gazebo/common/Video.cc +@@ -143,8 +143,8 @@ bool Video::Load(const std::string &_fil + + // Inform the codec that we can handle truncated bitstreams -- i.e., + // bitstreams where frame boundaries can fall in the middle of packets +- if (codec->capabilities & CODEC_CAP_TRUNCATED) +- this->codecCtx->flags |= CODEC_FLAG_TRUNCATED; ++ if (codec->capabilities & AV_CODEC_CAP_TRUNCATED) ++ this->codecCtx->flags |= AV_CODEC_FLAG_TRUNCATED; + + // Open codec + if (avcodec_open2(this->codecCtx, codec, nullptr) < 0) |