diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2018-05-02 13:31:46 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2018-05-02 13:31:46 +0000 |
commit | 30dd2acc78a8aa95af07c2ac91db1671e6d43221 (patch) | |
tree | f373a19d32aa04688466a969dd05aa6641cc7494 /cad/netgen | |
parent | 0344a0c8872d16f463e3f6817af529cea3d25ece (diff) | |
download | ports-30dd2acc78a8aa95af07c2ac91db1671e6d43221.tar.gz ports-30dd2acc78a8aa95af07c2ac91db1671e6d43221.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)
Notes
Notes:
svn path=/head/; revision=468835
Diffstat (limited to 'cad/netgen')
-rw-r--r-- | cad/netgen/files/patch-ng_ngpkg.cpp | 6 |
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; } |