blob: 7bd8777dea3faca850de73bd8d192b95f3cf7383 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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)
|