2025-08-31 03:32 ftp://ftp.de.debian.org/debian/pool/main/g/gmerlin-encoders/gmerlin-encoders_2.0.0~svngit.20231213.4d5872f.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --inconclusive --enable=style,information --inline-suppr --template=daca2 --disable=missingInclude --suppress=unmatchedSuppression --check-library --debug-warnings --suppress=autoNoType --suppress=valueFlowBailout --suppress=bailoutUninitVar --suppress=symbolDatabaseWarning --suppress=normalCheckLevelConditionExpressions -D__GNUC__ --platform=unix64 -j4 platform: Linux-6.12.41+deb13-amd64-x86_64-with-glibc2.41 python: 3.13.5 client-version: 1.3.67 compiler: g++ (Debian 14.2.0-19) 14.2.0 cppcheck: head 2.18.0 head-info: 2ee39fe (2025-08-30 22:07:31 +0200) count: 224 271 elapsed-time: 0.4 0.4 head-timing-info: old-timing-info: head results: gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/id3v1.c:146:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_META_TITLE [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/vorbiscomment.c:64:52: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_META_SOFTWARE [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/vorbiscomment.c:158:50: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_META_DATE [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgshout.c:59:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHOUT_FORMAT_OGG [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgshout.c:174:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_LOG_ERROR [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgshout.c:186:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_META_GENRE [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgshout.c:192:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHOUTERR_CONNECTED [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgshout.c:203:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHOUTERR_SUCCESS [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgshout.c:216:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHOUTERR_SUCCESS [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgshout.c:258:44: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_META_ARTIST [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgshout.c:56:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgshout.c:53:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgshout.c:53:15: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgshout.c:56:3: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgshout.c:57:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgshout.c:53:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgshout.c:53:15: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgshout.c:57:3: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgshout.c:59:6: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgshout.c:53:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgshout.c:53:15: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgshout.c:59:6: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgshout.c:62:20: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgshout.c:53:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgshout.c:53:15: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgshout.c:62:20: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgflac.c:183:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLAC__METADATA_TYPE_STREAMINFO [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgflac.c:237:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BG_FLAC_HEADER_SIZE [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgflac.c:296:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_LOG_ERROR [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgflac.c:406:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_INTERLEAVE_NONE [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgflac.c:536:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_CODEC_ID_FLAC [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/id3v1.c:140:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/id3v1.c:138:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/id3v1.c:138:15: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/id3v1.c:140:3: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/id3v1.c:141:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/id3v1.c:138:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/id3v1.c:138:15: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/id3v1.c:141:3: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/id3v1.c:142:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/id3v1.c:138:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/id3v1.c:138:15: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/id3v1.c:142:3: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgshout.c:43:7: style: struct member 'bg_shout_s::metadata_sent' is never used. [unusedStructMember] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/faac/c_faac.c:77:56: style: Parameter 'priv' can be declared as pointer to const. However it seems that 'get_compressions' is a callback function, if 'priv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/faac/c_faac.c:101:25: note: You might need to cast the function pointer here gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/faac/c_faac.c:77:56: note: Parameter 'priv' can be declared as pointer to const gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/_codec_plugin.c:31:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/_codec_plugin.c:29:32: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/_codec_plugin.c:29:32: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/_codec_plugin.c:31:3: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/_codec_plugin.c:94:56: style: Parameter 'priv' can be declared as pointer to const. However it seems that 'get_compressions' is a callback function, if 'priv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/_codec_plugin.c:126:26: note: You might need to cast the function pointer here gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/_codec_plugin.c:94:56: note: Parameter 'priv' can be declared as pointer to const gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/faac/e_faac.c:166:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_LOG_WARNING [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/faac/e_faac.c:196:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/faac/e_faac.c:222:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_SINK_ERROR [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgflac.c:535:3: warning: If memory allocation fails, then there is a possible null pointer dereference: flac [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgflac.c:534:28: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgflac.c:534:28: note: Assignment 'flac=calloc(1,sizeof(*flac))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgflac.c:535:3: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgflac.c:536:3: warning: If memory allocation fails, then there is a possible null pointer dereference: flac [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgflac.c:534:28: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgflac.c:534:28: note: Assignment 'flac=calloc(1,sizeof(*flac))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgflac.c:536:3: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/faac/faac_codec.c:178:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable MPEG2 [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/faac/faac_codec.c:289:60: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_SINK_OK [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/faac/faac_codec.c:303:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_TIME_UNDEFINED [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/faac/faac_codec.c:356:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FAAC_INPUT_FLOAT [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgflac.c:103:65: style: Parameter 'src' can be declared as pointer to const. However it seems that 'copy_frame_32' is a callback function, if 'src' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgflac.c:431:24: note: You might need to cast the function pointer here gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgflac.c:103:65: note: Parameter 'src' can be declared as pointer to const gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/lib/bgflac.c:331:13: style: Variable 'ptr' can be declared as pointer to const [constVariablePointer] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/faac/e_faac.c:274:10: style: Condition 'ret' is always true [knownConditionTrueFalse] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/faac/e_faac.c:260:13: note: Assignment 'ret=1', assigned value is 1 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/faac/e_faac.c:274:10: note: Condition 'ret' is always true gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/faac/e_faac.c:66:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/faac/e_faac.c:65:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/faac/e_faac.c:65:15: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/faac/e_faac.c:66:3: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/faac/e_faac.c:131:63: style: Parameter 'data' can be declared as pointer to const. However it seems that 'get_parameters_faac' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/faac/e_faac.c:312:28: note: You might need to cast the function pointer here gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/faac/e_faac.c:131:63: note: Parameter 'data' can be declared as pointer to const gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/faac/e_faac.c:253:12: style: Variable 'faac' can be declared as pointer to const [constVariablePointer] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/faac/faac_codec.c:168:49: style:inconclusive: Function 'bg_faac_set_parameter' argument 3 names different: declaration 'val' definition 'v'. [funcArgNamesDifferent] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/faac/faac_codec.h:31:49: note: Function 'bg_faac_set_parameter' argument 3 names different: declaration 'val' definition 'v'. gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/faac/faac_codec.c:168:49: note: Function 'bg_faac_set_parameter' argument 3 names different: declaration 'val' definition 'v'. gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/faac/faac_codec.c:162:64: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:48:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_CODEC_ID_NONE [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:91:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_LOG_ERROR [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:127:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable BG_CFG_TAG_NAME [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:148:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AVMEDIA_TYPE_VIDEO [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:181:61: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_CODEC_ID_NONE [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:253:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_CODEC_CAP_DELAY [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:328:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_TIME_UNDEFINED [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:422:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_CODEC_FLAG_QSCALE [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:511:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_LOG_ERROR [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:604:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_LOG_ERROR [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:679:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AVMEDIA_TYPE_VIDEO [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:808:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AVMEDIA_TYPE_VIDEO [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:894:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_PIX_FMT_BGRA [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codecs.c:265:3: error: There is an unknown macro here somewhere. Configuration is required. If TRS is a macro then please configure it. [unknownMacro] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:204:0: error: failed to evaluate #if condition, undefined function-like macro invocation: AV_VERSION_INT( ... ) [preprocessorErrorDirective] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:204:2: error: failed to evaluate #if condition, undefined function-like macro invocation: AV_VERSION_INT( ... ) [preprocessorErrorDirective] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/b_lame.c:54:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHOUT_FORMAT_MP3 [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/b_lame.c:139:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_SINK_ERROR [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/b_lame.c:196:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_CODEC_ID_MP3 [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/b_lame.c:53:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/b_lame.c:52:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/b_lame.c:52:15: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/b_lame.c:53:3: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/b_lame.c:54:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/b_lame.c:52:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/b_lame.c:52:15: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/b_lame.c:54:3: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/b_lame.c:69:65: style: Parameter 'data' can be declared as pointer to const. However it seems that 'get_parameters_b_lame' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/b_lame.c:216:28: note: You might need to cast the function pointer here gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/b_lame.c:69:65: note: Parameter 'data' can be declared as pointer to const gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/b_lame.c:81:69: style: Parameter 'data' can be declared as pointer to const. However it seems that 'get_audio_parameters_lame' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/b_lame.c:226:32: note: You might need to cast the function pointer here gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/b_lame.c:81:69: note: Parameter 'data' can be declared as pointer to const gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/b_lame.c:95:29: style: Parameter 'data' can be declared as pointer to const. However it seems that 'open_lame' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/b_lame.c:224:28: note: You might need to cast the function pointer here gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/b_lame.c:95:29: note: Parameter 'data' can be declared as pointer to const gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/b_lame.c:181:14: style: Variable 'lame' can be declared as pointer to const [constVariablePointer] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/b_lame.c:187:14: style: Variable 'lame' can be declared as pointer to const [constVariablePointer] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/b_lame.c:193:37: style: Parameter 'data' can be declared as pointer to const. However it seems that 'writes_compressed_audio_lame' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/b_lame.c:225:32: note: You might need to cast the function pointer here gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/b_lame.c:193:37: note: Parameter 'data' can be declared as pointer to const gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:169:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sample_number [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:353:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:388:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:436:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sample_number [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:459:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_SINK_OK [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:528:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable sample_number [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:657:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_CODEC_ID_FLAC [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:48:6: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:80:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:80:15: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:86:20: note: Calling function 'find_encoder', 1st argument 'ret' value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:48:6: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:51:6: warning: If memory allocation fails, then there is a possible null pointer dereference: ctx [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:80:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:80:15: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:86:20: note: Calling function 'find_encoder', 1st argument 'ret' value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:48:14: note: Assuming condition is false gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:51:6: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:82:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:80:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:80:15: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:82:3: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:83:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:80:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:80:15: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:83:3: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:84:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:80:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:80:15: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:84:3: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/c_lame.c:48:58: style: Parameter 'priv' can be declared as pointer to const. However it seems that 'get_parameters' is a callback function, if 'priv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/c_lame.c:94:28: note: You might need to cast the function pointer here gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/c_lame.c:48:58: note: Parameter 'priv' can be declared as pointer to const gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/c_lame.c:76:56: style: Parameter 'priv' can be declared as pointer to const. However it seems that 'get_compressions' is a callback function, if 'priv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/c_lame.c:99:25: note: You might need to cast the function pointer here gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/c_lame.c:76:56: note: Parameter 'priv' can be declared as pointer to const gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:72:72: style:inconclusive: Function 'bg_ffmpeg_codec_create' argument 2 names different: declaration 'avctx' definition 'params'. [funcArgNamesDifferent] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.h:195:72: note: Function 'bg_ffmpeg_codec_create' argument 2 names different: declaration 'avctx' definition 'params'. gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:72:72: note: Function 'bg_ffmpeg_codec_create' argument 2 names different: declaration 'avctx' definition 'params'. gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:139:57: style:inconclusive: Function 'bg_ffmpeg_codec_set_parameter' argument 3 names different: declaration 'val' definition 'v'. [funcArgNamesDifferent] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.h:204:57: note: Function 'bg_ffmpeg_codec_set_parameter' argument 3 names different: declaration 'val' definition 'v'. gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:139:57: note: Function 'bg_ffmpeg_codec_set_parameter' argument 3 names different: declaration 'val' definition 'v'. gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:146:18: style: Local variable 'name' shadows outer argument [shadowArgument] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:138:49: note: Shadowed declaration gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:146:18: note: Shadow variable gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:116:88: style: Parameter 'ctx' can be declared as pointer to const [constParameterPointer] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:382:20: style: Variable 'ofmt' can be declared as pointer to const [constVariablePointer] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:637:31: style: Variable 'ctx' can be declared as pointer to const [constVariablePointer] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:668:20: style: Variable 'ofmt' can be declared as pointer to const [constVariablePointer] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:868:60: style: Parameter 'ctx' can be declared as pointer to const. However it seems that 'convert_frame_bgra' is a callback function, if 'ctx' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:896:28: note: You might need to cast the function pointer here gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/codec.c:868:60: note: Parameter 'ctx' can be declared as pointer to const gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/bglame.c:392:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vbr_off [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/bglame.c:422:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable vbr_abr [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/bglame.c:523:65: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_SINK_OK [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/bglame.c:548:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_TIME_UNDEFINED [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/bglame.c:589:24: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_SAMPLE_FLOAT [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/bglame.c:704:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_TIME_UNDEFINED [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/e_lame.c:181:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_LOG_WARNING [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/e_lame.c:215:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/e_lame.c:242:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_CODEC_ID_MP3 [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/e_lame.c:261:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_BITRATE_VBR [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/e_lame.c:331:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_BITRATE_VBR [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/xing.c:194:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/xing.c:191:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/xing.c:191:15: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/xing.c:194:3: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/xing.c:197:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/xing.c:191:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/xing.c:191:15: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/xing.c:197:3: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/xing.c:204:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/xing.c:191:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/xing.c:191:15: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/xing.c:204:5: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/xing.c:205:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/xing.c:191:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/xing.c:191:15: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/xing.c:205:5: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/xing.c:207:19: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/xing.c:191:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/xing.c:191:15: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/xing.c:207:19: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/xing.c:208:35: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/xing.c:191:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/xing.c:191:15: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/xing.c:208:35: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/xing.c:209:12: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/xing.c:191:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/xing.c:191:15: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/xing.c:209:12: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/xing.c:186:38: style: Parameter 'first_frame' can be declared as pointer to const [constParameterPointer] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/e_lame.c:74:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/e_lame.c:73:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/e_lame.c:73:15: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/e_lame.c:74:3: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/e_lame.c:95:69: style: Parameter 'data' can be declared as pointer to const. However it seems that 'get_audio_parameters_lame' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/e_lame.c:424:32: note: You might need to cast the function pointer here gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/e_lame.c:95:69: note: Parameter 'data' can be declared as pointer to const gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/e_lame.c:102:17: style: Variable 'lame' can be declared as pointer to const [constVariablePointer] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/e_lame.c:143:63: style: Parameter 'data' can be declared as pointer to const. However it seems that 'get_parameters_lame' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/e_lame.c:414:28: note: You might need to cast the function pointer here gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/e_lame.c:143:63: note: Parameter 'data' can be declared as pointer to const gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/e_lame.c:239:37: style: Parameter 'data' can be declared as pointer to const. However it seems that 'writes_compressed_audio_lame' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/e_lame.c:423:32: note: You might need to cast the function pointer here gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/e_lame.c:239:37: note: Parameter 'data' can be declared as pointer to const gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/e_lame.c:283:17: style: Variable 'lame' can be declared as pointer to const [constVariablePointer] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/_codec_plugin.c:32:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CODEC [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/_codec_plugin.c:32:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/_codec_plugin.c:30:32: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/_codec_plugin.c:30:32: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/_codec_plugin.c:32:3: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/_codec_plugin.c:33:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/_codec_plugin.c:30:32: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/_codec_plugin.c:30:32: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/_codec_plugin.c:33:3: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/_codec_plugin.c:33:15: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/_codec_plugin.c:30:32: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/_codec_plugin.c:30:32: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/_codec_plugin.c:33:15: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:127:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ptr [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:124:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:124:15: note: Assignment 'buf=malloc(4+len)', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:125:7: note: ptr is assigned 'buf' here. gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:127:3: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:129:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ptr [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:124:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:124:15: note: Assignment 'buf=malloc(4+len)', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:125:7: note: ptr is assigned 'buf' here. gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:129:5: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:130:6: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:124:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:124:15: note: Assignment 'buf=malloc(4+len)', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:125:7: note: ptr is assigned 'buf' here. gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:130:6: note: Null pointer addition gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/_codec_plugin.c:84:56: style: Parameter 'priv' can be declared as pointer to const. However it seems that 'get_compressions' is a callback function, if 'priv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/_codec_plugin.c:115:25: note: You might need to cast the function pointer here gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/_codec_plugin.c:84:56: note: Parameter 'priv' can be declared as pointer to const gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/e_lame.c:67:25: style: struct member 'lame_priv_t::fmt' is never used. [unusedStructMember] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/e_lame.c:374:15: style: Variable 'ret' is assigned a value that is never used. [unreadVariable] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:306:11: style: Local variable 'len' shadows outer argument [shadowArgument] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:252:63: note: Shadowed declaration gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:306:11: note: Shadow variable gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:227:63: style: Parameter 'data' can be declared as pointer to const. However it seems that 'get_parameters_flac' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:698:28: note: You might need to cast the function pointer here gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:227:63: note: Parameter 'data' can be declared as pointer to const gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:449:59: style: Parameter 'packet' can be declared as pointer to const. However it seems that 'write_audio_packet_func_flac' is a callback function, if 'packet' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:481:35: note: You might need to cast the function pointer here gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:449:59: note: Parameter 'packet' can be declared as pointer to const gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:491:12: style: Variable 'flac' can be declared as pointer to const [constVariablePointer] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:498:12: style: Variable 'flac' can be declared as pointer to const [constVariablePointer] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:653:48: style: Parameter 'priv' can be declared as pointer to const. However it seems that 'writes_compressed_audio_flac' is a callback function, if 'priv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:711:32: note: You might need to cast the function pointer here gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:653:48: note: Parameter 'priv' can be declared as pointer to const gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:679:69: style: Parameter 'priv' can be declared as pointer to const. However it seems that 'get_audio_parameters_flac' is a callback function, if 'priv' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:709:32: note: You might need to cast the function pointer here gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:679:69: note: Parameter 'priv' can be declared as pointer to const gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:87:7: style: struct member 'flac_t::fixed_blocksize' is never used. [unusedStructMember] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:171:55: style: Variable 'ptr' is assigned a value that is never used. [unreadVariable] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/flac/e_flac.c:257:12: style: Variable 'last' is assigned a value that is never used. [unreadVariable] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/b_ogg.c:153:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SHOUT_FORMAT_OGG [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/bglame.c:392:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/bglame.c:391:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/bglame.c:391:15: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/bglame.c:392:3: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/bglame.c:393:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/bglame.c:391:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/bglame.c:391:15: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/bglame.c:393:3: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/bglame.c:394:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/bglame.c:391:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/bglame.c:391:15: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/bglame.c:394:3: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/bglame.c:395:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/bglame.c:391:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/bglame.c:391:15: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/bglame.c:395:3: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/bglame.c:143:53: style: Parameter 'ptr' can be declared as pointer to const [constParameterPointer] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/bglame.c:131:7: style: struct member 'mpeg_header::bitrate_mode' is never used. [unusedStructMember] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/bglame.c:134:7: style: struct member 'mpeg_header::min_bitrate' is never used. [unusedStructMember] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/bglame.c:135:7: style: struct member 'mpeg_header::max_bitrate' is never used. [unusedStructMember] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/b_ogg.c:78:21: style: Variable 'ret' can be declared as pointer to const [constVariablePointer] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/b_ogg.c:166:64: style: Parameter 'data' can be declared as pointer to const. However it seems that 'get_parameters_b_ogg' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/b_ogg.c:205:28: note: You might need to cast the function pointer here gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/b_ogg.c:166:64: note: Parameter 'data' can be declared as pointer to const gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/lame/bglame.c:139:7: style: struct member 'mpeg_header::mode' is never used. [unusedStructMember] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/e_opus.c:73:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_CODEC_ID_OPUS [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/e_oggvideo.c:113:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_CODEC_ID_VORBIS [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/e_oggvideo.c:251:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_CODEC_ID_VORBIS [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/e_oggvideo.c:271:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_CODEC_ID_THEORA [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/e_opus.c:69:47: style: Parameter 'data' can be declared as pointer to const. However it seems that 'writes_compressed_audio_opus' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/e_opus.c:118:32: note: You might need to cast the function pointer here gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/e_opus.c:69:47: note: Parameter 'data' can be declared as pointer to const gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/e_vorbis.c:72:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_CODEC_ID_VORBIS [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/e_vorbis.c:68:49: style: Parameter 'data' can be declared as pointer to const. However it seems that 'writes_compressed_audio_vorbis' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/e_vorbis.c:108:32: note: You might need to cast the function pointer here gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/e_vorbis.c:68:49: note: Parameter 'data' can be declared as pointer to const gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/e_oggvideo.c:98:21: style: Variable 's' can be declared as pointer to const [constVariablePointer] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/e_oggvideo.c:135:21: style: Variable 's' can be declared as pointer to const [constVariablePointer] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/e_oggvideo.c:146:21: style: Variable 's' can be declared as pointer to const [constVariablePointer] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/e_oggvideo.c:247:51: style: Parameter 'data' can be declared as pointer to const. However it seems that 'writes_compressed_audio_oggvideo' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/e_oggvideo.c:300:32: note: You might need to cast the function pointer here gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/e_oggvideo.c:247:51: note: Parameter 'data' can be declared as pointer to const gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/e_oggvideo.c:267:52: style: Parameter 'data' can be declared as pointer to const. However it seems that 'writes_compressed_video_oggvideo' is a callback function, if 'data' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/e_oggvideo.c:301:32: note: You might need to cast the function pointer here gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/e_oggvideo.c:267:52: note: Parameter 'data' can be declared as pointer to const gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/flac.c:104:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_LOG_ERROR [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/flac.c:119:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ptr [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/flac.c:116:21: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/flac.c:116:21: note: Assignment 'op.packet=malloc(4+len)', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/flac.c:117:11: note: Assignment 'ptr=op.packet', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/flac.c:119:3: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/flac.c:150:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/flac.c:149:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/flac.c:149:15: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/flac.c:150:3: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/flac.c:120:6: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/flac.c:116:21: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/flac.c:116:21: note: Assignment 'op.packet=malloc(4+len)', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/flac.c:117:11: note: Assignment 'ptr=op.packet', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/flac.c:120:6: note: Null pointer addition gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/flac.c:76:11: style: Variable 'header_bytes' can be declared as const array [constVariable] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/flac.c:50:7: style: struct member 'flacogg_t::header_written' is never used. [unusedStructMember] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/flac.c:56:7: style: struct member 'flacogg_t::frame_size' is never used. [unusedStructMember] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/flac.c:57:7: style: struct member 'flacogg_t::frame_alloc' is never used. [unusedStructMember] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/flac.c:58:11: style: struct member 'flacogg_t::samples_encoded' is never used. [unusedStructMember] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/flac.c:59:11: style: struct member 'flacogg_t::frames_encoded' is never used. [unusedStructMember] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/flac.c:61:7: style: struct member 'flacogg_t::frame_samples' is never used. [unusedStructMember] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/flac.c:63:7: style: struct member 'flacogg_t::write_error' is never used. [unusedStructMember] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/theora.c:296:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_LOG_ERROR [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/theora.c:365:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stride [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/theora.c:484:28: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_INTERLACE_NONE [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/theora.c:723:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_PACKET_KEYFRAME [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/ogg_common.c:114:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stdout [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/ogg_common.c:188:16: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_LOG_ERROR [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/ogg_common.c:220:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_PACKET_LAST [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/ogg_common.c:231:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_PACKET_LAST [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/ogg_common.c:254:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_SINK_ERROR [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/ogg_common.c:683:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable multi_names_nc [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/ogg_common.c:752:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/ogg_common.c:766:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_CHID_AUX [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/theora.c:583:14: warning: If memory allocation fails, then there is a possible null pointer dereference: vendor [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/theora.c:582:22: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/theora.c:582:22: note: Assignment 'vendor=calloc(1,vendor_len+1)', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/theora.c:583:14: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/opus.c:244:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPUS_APPLICATION_AUDIO [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/opus.c:321:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_SAMPLE_FLOAT [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/opus.c:413:34: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_SINK_ERROR [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/opus.c:461:79: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable OPUS_OK [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/opus.c:565:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_LOG_ERROR [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/opus.c:647:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_INTERLEAVE_ALL [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/theora.c:716:44: style: Parameter 'src' can be declared as pointer to const. However it seems that 'convert_packet' is a callback function, if 'src' is declared with const you might also need to cast function pointer(s). [constParameterCallback] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/theora.c:785:23: note: You might need to cast the function pointer here gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/theora.c:716:44: note: Parameter 'src' can be declared as pointer to const gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/theora.c:67:11: style: struct member 'theora_t::frame_counter' is never used. [unusedStructMember] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/vorbis.c:175:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_LOG_ERROR [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/vorbis.c:293:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_SINK_ERROR [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/vorbis.c:323:37: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_INTERLEAVE_NONE [valueFlowBailoutIncompleteVar] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/vorbis.c:365:10: warning: If memory allocation fails, then there is a possible null pointer dereference: vendor [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/vorbis.c:364:18: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/vorbis.c:364:18: note: Assignment 'vendor=calloc(1,vendor_len+1)', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/vorbis.c:365:10: note: Null pointer dereference gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/vorbis.c:56:22: style: struct member 'vorbis_t::output' is never used. [unusedStructMember] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/ogg_common.c:544:44: style:inconclusive: Function 'bg_ogg_encoder_update_metadata' argument 1 names different: declaration 'priv' definition 'data'. [funcArgNamesDifferent] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/ogg_common.h:129:44: note: Function 'bg_ogg_encoder_update_metadata' argument 1 names different: declaration 'priv' definition 'data'. gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/ogg_common.c:544:44: note: Function 'bg_ogg_encoder_update_metadata' argument 1 names different: declaration 'priv' definition 'data'. gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/vorbis.c:69:7: style: struct member 'vorbis_t::quality_set' is never used. [unusedStructMember] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/ogg_common.c:207:41: style: Parameter 'src' can be declared as pointer to const [constParameterPointer] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/opus.c:773:65: style:inconclusive: Function 'header_to_packet' argument 2 names different: declaration 'ret' definition 'buf'. [funcArgNamesDifferent] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/opus.c:66:65: note: Function 'header_to_packet' argument 2 names different: declaration 'ret' definition 'buf'. gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/opus.c:773:65: note: Function 'header_to_packet' argument 2 names different: declaration 'ret' definition 'buf'. gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ogg/opus.c:97:7: style: struct member 'opus_t::to_skip' is never used. [unusedStructMember] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/utils/cpuinfo.c:215:4: style: Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. [prohibitedusleepCalled] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/utils/cpuinfo.c:185:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/utils/cpuinfo.c:185:3: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/utils/cpuinfo.c:185:3: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/utils/cpuinfo.c:173:7: style: Local variable 'i' shadows outer variable [shadowVariable] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/utils/cpuinfo.c:88:6: note: Shadowed declaration gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/utils/cpuinfo.c:173:7: note: Shadow variable gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/utils/cpuinfo.c:87:8: style: Variable 'model_name' can be declared as pointer to const [constVariablePointer] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/utils/cpuinfo.c:132:5: style: Variable 'cap' can be declared as const array [constVariable] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/utils/cpuinfo.c:166:5: style: Variable 'cap_amd' can be declared as const array [constVariable] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/utils/cpuinfo.c:106:21: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/utils/cpuinfo.c:108:25: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/utils/cpuinfo.c:109:25: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/utils/cpuinfo.c:112:29: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/utils/cpuinfo.c:114:26: error: Shifting signed 32-bit value by 31 bits is undefined behaviour [shiftTooManyBitsSigned] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/utils/cpuinfo.c:106:27: error: Signed integer overflow for expression '(1<<31)+0'. [integerOverflow] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/utils/cpuinfo.c:108:31: error: Signed integer overflow for expression '(1<<31)+1'. [integerOverflow] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/utils/cpuinfo.c:109:31: error: Signed integer overflow for expression '(1<<31)+1'. [integerOverflow] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/utils/cpuinfo.c:112:35: error: Signed integer overflow for expression '(1<<31)+4'. [integerOverflow] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/utils/cpuinfo.c:114:32: error: Signed integer overflow for expression '(1<<31)+i'. [integerOverflow] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/utils/cpuinfo.c:113:12: note: Assignment 'i=2', assigned value is 2 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/utils/cpuinfo.c:114:32: note: Integer overflow gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/utils/cpuinfo.c:131:10: style: struct member 'Anonymous0::description' is never used. [unusedStructMember] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/utils/cpuinfo.c:165:10: style: struct member 'Anonymous1::description' is never used. [unusedStructMember] diff: 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:1012:19: style: Variable 'f' can be declared as pointer to const [constVariablePointer] 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:1017:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_CODEC_ID_NONE [valueFlowBailoutIncompleteVar] 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:1036:41: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_INPUT_BUFFER_PADDING_SIZE [valueFlowBailoutIncompleteVar] 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:1047:65: style:inconclusive: Function 'bg_ffmpeg_add_audio_stream_compressed' argument 2 names different: declaration 'metadata' definition 'm'. [funcArgNamesDifferent] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.h:410:69: note: Function 'bg_ffmpeg_add_audio_stream_compressed' argument 2 names different: declaration 'metadata' definition 'm'. gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:1047:65: note: Function 'bg_ffmpeg_add_audio_stream_compressed' argument 2 names different: declaration 'metadata' definition 'm'. 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:1077:69: style:inconclusive: Function 'bg_ffmpeg_add_video_stream_compressed' argument 2 names different: declaration 'metadata' definition 'm'. [funcArgNamesDifferent] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.h:415:69: note: Function 'bg_ffmpeg_add_video_stream_compressed' argument 2 names different: declaration 'metadata' definition 'm'. gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:1077:69: note: Function 'bg_ffmpeg_add_video_stream_compressed' argument 2 names different: declaration 'metadata' definition 'm'. 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:1091:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_TIME_UNDEFINED [valueFlowBailoutIncompleteVar] 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:124:19: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:131:19: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:138:19: style: Variable 'priv' can be declared as pointer to const [constVariablePointer] 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:175:43: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_META_TITLE [valueFlowBailoutIncompleteVar] head gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:204:0: error: failed to evaluate #if condition, undefined function-like macro invocation: AV_VERSION_INT( ... ) [preprocessorErrorDirective] head gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:204:2: error: failed to evaluate #if condition, undefined function-like macro invocation: AV_VERSION_INT( ... ) [preprocessorErrorDirective] 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:240:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_LOG_WARNING [valueFlowBailoutIncompleteVar] 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:245:32: style: Parameter 'instr' can be declared as pointer to const [constParameterPointer] 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:280:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_LOG_ERROR [valueFlowBailoutIncompleteVar] 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:346:58: style:inconclusive: Function 'bg_ffmpeg_add_audio_stream' argument 2 names different: declaration 'metadata' definition 'm'. [funcArgNamesDifferent] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.h:333:58: note: Function 'bg_ffmpeg_add_audio_stream' argument 2 names different: declaration 'metadata' definition 'm'. gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:346:58: note: Function 'bg_ffmpeg_add_audio_stream' argument 2 names different: declaration 'metadata' definition 'm'. 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:371:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AVMEDIA_TYPE_AUDIO [valueFlowBailoutIncompleteVar] 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:385:58: style:inconclusive: Function 'bg_ffmpeg_add_video_stream' argument 2 names different: declaration 'metadata' definition 'm'. [funcArgNamesDifferent] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.h:337:58: note: Function 'bg_ffmpeg_add_video_stream' argument 2 names different: declaration 'metadata' definition 'm'. gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:385:58: note: Function 'bg_ffmpeg_add_video_stream' argument 2 names different: declaration 'metadata' definition 'm'. 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:408:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AVMEDIA_TYPE_VIDEO [valueFlowBailoutIncompleteVar] 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:457:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_SINK_ERROR [valueFlowBailoutIncompleteVar] 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:464:57: style:inconclusive: Function 'bg_ffmpeg_add_text_stream' argument 2 names different: declaration 'metadata' definition 'm'. [funcArgNamesDifferent] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.h:341:57: note: Function 'bg_ffmpeg_add_text_stream' argument 2 names different: declaration 'metadata' definition 'm'. gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:464:57: note: Function 'bg_ffmpeg_add_text_stream' argument 2 names different: declaration 'metadata' definition 'm'. 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:465:42: style: Parameter 'timescale' can be declared as pointer to const [constParameterPointer] 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:481:42: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AVMEDIA_TYPE_SUBTITLE [valueFlowBailoutIncompleteVar] 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:516:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AVMEDIA_TYPE_AUDIO [valueFlowBailoutIncompleteVar] 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:52:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable name [valueFlowBailoutIncompleteVar] 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:52:29: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:50:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:50:15: note: Assignment 'ret=calloc(2,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:52:29: note: Null pointer dereference 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:52:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:50:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:50:15: note: Assignment 'ret=calloc(2,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:52:3: note: Null pointer dereference 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:539:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AVMEDIA_TYPE_VIDEO [valueFlowBailoutIncompleteVar] 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:53:34: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:50:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:50:15: note: Assignment 'ret=calloc(2,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:53:34: note: Null pointer dereference 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:53:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:50:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:50:15: note: Assignment 'ret=calloc(2,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:53:3: note: Null pointer dereference 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:54:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:50:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:50:15: note: Assignment 'ret=calloc(2,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:54:3: note: Null pointer dereference 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:550:43: style:inconclusive: Function 'bg_ffmpeg_set_video_pass' argument 5 names different: declaration 'stats_file' definition 'stats_filename'. [funcArgNamesDifferent] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.h:353:43: note: Function 'bg_ffmpeg_set_video_pass' argument 5 names different: declaration 'stats_file' definition 'stats_filename'. gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:550:43: note: Function 'bg_ffmpeg_set_video_pass' argument 5 names different: declaration 'stats_file' definition 'stats_filename'. 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:571:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_FRAMERATE_CONSTANT [valueFlowBailoutIncompleteVar] 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:603:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_TIME_UNDEFINED [valueFlowBailoutIncompleteVar] 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:60:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:50:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:50:15: note: Assignment 'ret=calloc(2,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:60:3: note: Null pointer dereference 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:62:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:50:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:50:15: note: Assignment 'ret=calloc(2,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:62:3: note: Null pointer dereference 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:657:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_TIME_UNDEFINED [valueFlowBailoutIncompleteVar] 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:674:22: error: Uninitialized variable: pkt [uninitvar] 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:67:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:50:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:50:15: note: Assignment 'ret=calloc(2,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:67:5: note: Null pointer dereference 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:68:19: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:50:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:50:15: note: Assignment 'ret=calloc(2,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:68:19: note: Null pointer dereference 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:69:5: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:50:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:50:15: note: Assignment 'ret=calloc(2,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:69:5: note: Null pointer dereference 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:706:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_COMPRESSION_SBR [valueFlowBailoutIncompleteVar] 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:70:19: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:50:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:50:15: note: Assignment 'ret=calloc(2,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:70:19: note: Null pointer dereference 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:727:36: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable GAVL_FRAMERATE_CONSTANT [valueFlowBailoutIncompleteVar] 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:832:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AVIO_FLAG_WRITE [valueFlowBailoutIncompleteVar] 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:84:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:82:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:82:15: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:84:3: note: Null pointer dereference 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:86:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:82:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:82:15: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:86:3: note: Null pointer dereference 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:88:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:82:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:82:15: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:88:3: note: Null pointer dereference 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:90:3: warning: If memory allocation fails, then there is a possible null pointer dereference: ret [nullPointerOutOfMemory] gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:82:15: note: Assuming allocation function fails gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:82:15: note: Assignment 'ret=calloc(1,sizeof(*ret))', assigned value is 0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:90:3: note: Null pointer dereference 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:991:19: style: Variable 'f' can be declared as pointer to const [constVariablePointer] 2.18.0 gmerlin-encoders-2.0.0~svngit.20231213.4d5872f/plugins/ffmpeg/ffmpeg_common.c:996:39: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_CODEC_ID_NONE [valueFlowBailoutIncompleteVar] DONE