- 博客(131)
- 资源 (4)
- 问答 (1)
- 收藏
- 关注
原创 【总结】cannot bind non-const lvalue reference of type ‘std::**&’ to an rvalue of type std::**
无名对象 创建 类型
2023-11-06 20:01:24
706
原创 lambda表达式捕获列表---值捕获的方式(In lambda function: assignment of read-only variable)
c++ lambda 捕获列表 值传递
2023-09-19 14:18:24
353
原创 warning: ‘ 0x’ directive output may be truncated writing * bytes into a region of size between 1 and
snprintf truncate
2023-07-21 16:25:43
1053
原创 【c语言】大小可变结构体
对于某些情况,我们不易判断出某个数组中元素的个数。例如利用网络通信获取某个列表,这个列表可长可短。这种情况可以考虑使用大小可变结构体,形如:typedef struct tag_ST1{ int nCount; int items[0];} ST1;nCount标识items中元素的数量,如果只求结构体ST1的size,只会得到nCount的占用空间的size。使用方法,可参考如下代码:#include<stdio.h>#include<stdl
2022-05-16 16:26:51
839
原创 【live555】rtspURL的客户端数量是如何减少的
通过搜索是源代码,发现decrementReferenceCount存在两处:1、在处理DESCRIBE命令时,会临时增加ServerMediaSession的数量,当生成SDPDescription之后,就会decrementReferenceCount。所以此处可以忽略不计.void RTSPServer::RTSPClientConnection::handleCmd_DESCRIBE(char const* urlPreSuffix, char const* urlSuffix, cha
2022-04-14 14:36:36
335
ffmpeg 视频解码器 解码过程中 time_base进行改变,请教原因
2021-09-03
TA创建的收藏夹 TA关注的收藏夹
TA关注的人