Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 719804 - net-p2p/retroshare-0.6.4 fails to compile with use-flag "voip"
Summary: net-p2p/retroshare-0.6.4 fails to compile with use-flag "voip"
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gioacchino Mazzurco
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-27 13:50 UTC by Peter
Modified: 2020-04-28 23:05 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter 2020-04-27 13:50:26 UTC
Also with 0.6.4-r1. I described it in https://forums.gentoo.org/viewtopic-t-1111524-highlight-.html
There is also my user.patch ->

--- a/plugins/VOIP/gui/VideoProcessor.cpp
+++ b/plugins/VOIP/gui/VideoProcessor.cpp
@@ -453,10 +453,10 @@
     encoding_context->rc_max_rate = 0;
     encoding_context->rc_buffer_size = 0;
 #endif
-    if (encoding_codec->capabilities & CODEC_CAP_TRUNCATED)
-        encoding_context->flags |= CODEC_FLAG_TRUNCATED;
-    encoding_context->flags |= CODEC_FLAG_PSNR;//Peak signal-to-noise ratio
-    encoding_context->flags |= CODEC_CAP_PARAM_CHANGE;
+    if (encoding_codec->capabilities & AV_CODEC_CAP_TRUNCATED)
+        encoding_context->flags |= AV_CODEC_FLAG_TRUNCATED;
+    encoding_context->flags |= AV_CODEC_FLAG_PSNR;//Peak signal-to-noise ratio
+    encoding_context->flags |= AV_CODEC_CAP_PARAM_CHANGE;
     encoding_context->i_quant_factor = 0.769f;
     encoding_context->b_quant_factor = 1.4f;
     encoding_context->time_base.num = 1;
@@ -549,10 +549,10 @@
     decoding_context->pix_fmt = AV_PIX_FMT_YUV420P;
 #endif
 
-    if(decoding_codec->capabilities & CODEC_CAP_TRUNCATED)
-        decoding_context->flags |= CODEC_FLAG_TRUNCATED; // we do not send complete frames
+    if(decoding_codec->capabilities & AV_CODEC_CAP_TRUNCATED)
+        decoding_context->flags |= AV_CODEC_FLAG_TRUNCATED; // we do not send complete frames
     //we can receive truncated frames
-    decoding_context->flags2 |= CODEC_FLAG2_CHUNKS;
+    decoding_context->flags2 |= AV_CODEC_FLAG2_CHUNKS;
 
     AVDictionary* dictionary = NULL;
     if(avcodec_open2(decoding_context, decoding_codec, &dictionary) < 0)
Comment 1 Peter 2020-04-27 20:26:04 UTC
I may add this is a stable system with media-video/ffmpeg-4.2.2