mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 17:29:23 -04:00
math/octave-forge-video: unbreak with ffmpeg 4.0
AVHandler.cc:246:29: error: use of undeclared identifier 'CODEC_CAP_TRUNCATED' if (codec->capabilities & CODEC_CAP_TRUNCATED) ^ AVHandler.cc:247:30: error: use of undeclared identifier 'CODEC_FLAG_TRUNCATED' vstream->codec->flags |= CODEC_FLAG_TRUNCATED; ^ PR: 227726 Reported by: antoine (via exp-run)
This commit is contained in:
parent
261956386a
commit
57e8157afd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=468833
1 changed files with 20 additions and 0 deletions
20
math/octave-forge-video/files/patch-src_AVHandler.cc
Normal file
20
math/octave-forge-video/files/patch-src_AVHandler.cc
Normal file
|
@ -0,0 +1,20 @@
|
|||
AVHandler.cc:246:29: error: use of undeclared identifier 'CODEC_CAP_TRUNCATED'
|
||||
if (codec->capabilities & CODEC_CAP_TRUNCATED)
|
||||
^
|
||||
AVHandler.cc:247:30: error: use of undeclared identifier 'CODEC_FLAG_TRUNCATED'
|
||||
vstream->codec->flags |= CODEC_FLAG_TRUNCATED;
|
||||
^
|
||||
|
||||
--- src/AVHandler.cc.orig 2017-05-28 14:27:02 UTC
|
||||
+++ src/AVHandler.cc
|
||||
@@ -243,8 +243,8 @@ AVHandler::setup_read()
|
||||
codec_name = codec->name;
|
||||
|
||||
// We can handle truncated bitstreams
|
||||
- if (codec->capabilities & CODEC_CAP_TRUNCATED)
|
||||
- vstream->codec->flags |= CODEC_FLAG_TRUNCATED;
|
||||
+ if (codec->capabilities & AV_CODEC_CAP_TRUNCATED)
|
||||
+ vstream->codec->flags |= AV_CODEC_FLAG_TRUNCATED;
|
||||
|
||||
if (avcodec_open2(vstream->codec, codec, NULL) < 0)
|
||||
{
|
Loading…
Add table
Reference in a new issue