diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2018-05-02 21:26:23 +0800 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2018-05-02 21:26:23 +0800 |
commit | 57e8157afd53894e48ef70e99b60291bb270b10f (patch) | |
tree | 96b1039bdcd540eb35b8c391e3f26c9e8d84599a /math | |
parent | 261956386a3a0fd951edd137f32e3535acfe455d (diff) | |
download | freebsd-ports-gnome-57e8157afd53894e48ef70e99b60291bb270b10f.tar.gz freebsd-ports-gnome-57e8157afd53894e48ef70e99b60291bb270b10f.tar.zst freebsd-ports-gnome-57e8157afd53894e48ef70e99b60291bb270b10f.zip |
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)
Diffstat (limited to 'math')
-rw-r--r-- | math/octave-forge-video/files/patch-src_AVHandler.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/math/octave-forge-video/files/patch-src_AVHandler.cc b/math/octave-forge-video/files/patch-src_AVHandler.cc new file mode 100644 index 000000000000..111f05983381 --- /dev/null +++ b/math/octave-forge-video/files/patch-src_AVHandler.cc @@ -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) + { |