aboutsummaryrefslogtreecommitdiffstats
path: root/cad/netgen
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2018-05-02 21:31:46 +0800
committerjbeich <jbeich@FreeBSD.org>2018-05-02 21:31:46 +0800
commit4c92932a8fe96f987862048203934dd7465c4cba (patch)
treef373a19d32aa04688466a969dd05aa6641cc7494 /cad/netgen
parent0dd9e5f38d9f69889d80d151410c6400f825fbcb (diff)
downloadfreebsd-ports-gnome-4c92932a8fe96f987862048203934dd7465c4cba.tar.gz
freebsd-ports-gnome-4c92932a8fe96f987862048203934dd7465c4cba.tar.zst
freebsd-ports-gnome-4c92932a8fe96f987862048203934dd7465c4cba.zip
multimedia/webcamoid: unbreak with ffmpeg 4.0
ngpkg.cpp:2342:27: error: use of undeclared identifier 'CODEC_FLAG_PSNR' context->flags |= CODEC_FLAG_PSNR; ^ PR: 227726 Reported by: antoine (via exp-run)
Diffstat (limited to 'cad/netgen')
-rw-r--r--cad/netgen/files/patch-ng_ngpkg.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/cad/netgen/files/patch-ng_ngpkg.cpp b/cad/netgen/files/patch-ng_ngpkg.cpp
index 81ee1c7941c1..dd7691083acd 100644
--- a/cad/netgen/files/patch-ng_ngpkg.cpp
+++ b/cad/netgen/files/patch-ng_ngpkg.cpp
@@ -9,15 +9,17 @@
static FILE *MPGfile;
static buffer_t buff;
static struct SwsContext *img_convert_ctx;
-@@ -2338,7 +2338,7 @@ namespace netgen
+@@ -2338,8 +2338,8 @@ namespace netgen
context->time_base = s;
context->gop_size = gopsize;
context->max_b_frames = bframes;
- context->pix_fmt = PIX_FMT_YUV420P;
+- context->flags |= CODEC_FLAG_PSNR;
+ context->pix_fmt = AV_PIX_FMT_YUV420P;
- context->flags |= CODEC_FLAG_PSNR;
++ context->flags |= AV_CODEC_FLAG_PSNR;
// if( avcodec_open( context, codec ) < 0 ) {
+ if( avcodec_open2( context, codec, NULL) < 0 ) {
@@ -2351,7 +2351,7 @@ namespace netgen
return TCL_ERROR;
}