2026-05-01 20:13 ftp://ftp.de.debian.org/debian/pool/main/f/ffmpegthumbnailer/ffmpegthumbnailer_2.3.0+dfsg.orig.tar.xz cppcheck-options: --library=posix --library=gnu --library=bsd --library=qt --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 -j1 platform: Linux-6.8.0-111-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.70 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04.1) 14.2.0 cppcheck: head 2.20.0 head-info: e5c4a73 (2026-05-01 11:10:43 +0200) count: 75 68 elapsed-time: 0.5 0.4 head-timing-info: old-timing-info: head results: ffmpegthumbnailer-2.3.0/kffmpegthumbnailer/kffmpegthumbnailer.cpp:77:69: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Png [valueFlowBailoutIncompleteVar] ffmpegthumbnailer-2.3.0/kffmpegthumbnailer/kffmpegthumbnailer.cpp:99:31: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable None [valueFlowBailoutIncompleteVar] ffmpegthumbnailer-2.3.0/kffmpegthumbnailer/kffmpegthumbnailer.cpp:148:92: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SkipEmptyParts [valueFlowBailoutIncompleteVar] ffmpegthumbnailer-2.3.0/kffmpegthumbnailer/kffmpegthumbnailer.cpp:35:21: warning: Member variable 'KFFMpegThumbnailer::m_addFilmStripCheckBox' is not initialized in the constructor. [uninitMemberVar] ffmpegthumbnailer-2.3.0/kffmpegthumbnailer/kffmpegthumbnailer.cpp:35:21: warning: Member variable 'KFFMpegThumbnailer::m_useMetadataCheckBox' is not initialized in the constructor. [uninitMemberVar] ffmpegthumbnailer-2.3.0/kffmpegthumbnailer/kffmpegthumbnailer.cpp:35:21: warning: Member variable 'KFFMpegThumbnailer::m_useSmartSelectionCheckBox' is not initialized in the constructor. [uninitMemberVar] ffmpegthumbnailer-2.3.0/kffmpegthumbnailer/kffmpegthumbnailer.cpp:35:21: warning: Member variable 'KFFMpegThumbnailer::m_sequenceSeekPercentagesLineEdit' is not initialized in the constructor. [uninitMemberVar] ffmpegthumbnailer-2.3.0/kffmpegthumbnailer/kffmpegthumbnailer.cpp:35:21: warning: Member variable 'KFFMpegThumbnailer::m_thumbCacheSizeSpinBox' is not initialized in the constructor. [uninitMemberVar] ffmpegthumbnailer-2.3.0/kffmpegthumbnailer/kffmpegthumbnailer.h:40:61: style:inconclusive: Function 'create' argument 3 names different: declaration 'height' definition ''. [funcArgNamesDifferentUnnamed] ffmpegthumbnailer-2.3.0/kffmpegthumbnailer/kffmpegthumbnailer.h:44:52: style:inconclusive: Function 'writeConfiguration' argument 1 names different: declaration 'configurationWidget' definition ''. [funcArgNamesDifferentUnnamed] ffmpegthumbnailer-2.3.0/kffmpegthumbnailer/kffmpegthumbnailer.cpp:152:24: performance: Range variable 'str' should be declared as const reference. [iterateByValue] ffmpegthumbnailer-2.3.0/kffmpegthumbnailer/kffmpegthumbnailer.cpp:82:30: style: Variable 'e' can be declared as reference to const [constVariableReference] ffmpegthumbnailer-2.3.0/kffmpegthumbnailer/kffmpegthumbnailer.cpp:55:13: style: Variable 'cachedImg' can be declared as pointer to const [constVariablePointer] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/videoframe.h:29:5: warning: Member variable 'VideoFrame::imageSource' is not initialized in the constructor. [uninitMemberVar] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/jpegwriter.cpp:63:83: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable j_common_ptr [valueFlowBailoutIncompleteVar] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/jpegwriter.cpp:96:38: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JCS_RGB [valueFlowBailoutIncompleteVar] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/jpegwriter.cpp:116:125: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable JPOOL_IMAGE [valueFlowBailoutIncompleteVar] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/jpegwriter.cpp:132:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TRUE [valueFlowBailoutIncompleteVar] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/jpegwriter.cpp:75:16: warning: Class 'JpegWriter' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/jpegwriter.cpp:75:16: warning: Class 'JpegWriter' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/jpegwriter.h:36:5: style: Class 'JpegWriter' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/jpegwriter.h:37:5: style: Class 'JpegWriter' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/jpegwriter.cpp:63:26: style: C-style pointer casting [cstyleCast] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/jpegwriter.h:40:37: style:inconclusive: Function 'setText' argument 1 names different: declaration 'key' definition ''. [funcArgNamesDifferentUnnamed] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/jpegwriter.h:40:61: style:inconclusive: Function 'setText' argument 2 names different: declaration 'value' definition ''. [funcArgNamesDifferentUnnamed] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/moviedecoder.cpp:125:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_CODEC_ID_MJPEG [valueFlowBailoutIncompleteVar] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/moviedecoder.cpp:136:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AVMEDIA_TYPE_VIDEO [valueFlowBailoutIncompleteVar] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/moviedecoder.cpp:338:27: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_FRAME_FLAG_INTERLACED [valueFlowBailoutIncompleteVar] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/moviedecoder.cpp:398:62: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_TIME_BASE [valueFlowBailoutIncompleteVar] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/moviedecoder.cpp:410:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_TIME_BASE [valueFlowBailoutIncompleteVar] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/moviedecoder.cpp:463:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EAGAIN [valueFlowBailoutIncompleteVar] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/moviedecoder.cpp:522:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable EAGAIN [valueFlowBailoutIncompleteVar] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/moviedecoder.cpp:563:9: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_PKT_DATA_DISPLAYMATRIX [valueFlowBailoutIncompleteVar] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/moviedecoder.cpp:114:22: style:inconclusive: Technically the member function 'ffmpegthumbnailer::MovieDecoder::getCodec' can be const. [functionConst] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/moviedecoder.h:49:17: note: Technically the member function 'ffmpegthumbnailer::MovieDecoder::getCodec' can be const. ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/moviedecoder.cpp:114:22: note: Technically the member function 'ffmpegthumbnailer::MovieDecoder::getCodec' can be const. ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/moviedecoder.cpp:377:19: style:inconclusive: Technically the member function 'ffmpegthumbnailer::MovieDecoder::getWidth' can be const. [functionConst] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/moviedecoder.h:54:9: note: Technically the member function 'ffmpegthumbnailer::MovieDecoder::getWidth' can be const. ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/moviedecoder.cpp:377:19: note: Technically the member function 'ffmpegthumbnailer::MovieDecoder::getWidth' can be const. ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/moviedecoder.cpp:386:19: style:inconclusive: Technically the member function 'ffmpegthumbnailer::MovieDecoder::getHeight' can be const. [functionConst] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/moviedecoder.h:55:9: note: Technically the member function 'ffmpegthumbnailer::MovieDecoder::getHeight' can be const. ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/moviedecoder.cpp:386:19: note: Technically the member function 'ffmpegthumbnailer::MovieDecoder::getHeight' can be const. ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/moviedecoder.cpp:395:19: style:inconclusive: Technically the member function 'ffmpegthumbnailer::MovieDecoder::getDuration' can be const. [functionConst] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/moviedecoder.h:56:9: note: Technically the member function 'ffmpegthumbnailer::MovieDecoder::getDuration' can be const. ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/moviedecoder.cpp:395:19: note: Technically the member function 'ffmpegthumbnailer::MovieDecoder::getDuration' can be const. ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/moviedecoder.cpp:109:20: style:inconclusive: Technically the member function 'ffmpegthumbnailer::MovieDecoder::embeddedMetaDataIsAvailable' can be const. [functionConst] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/moviedecoder.h:61:10: note: Technically the member function 'ffmpegthumbnailer::MovieDecoder::embeddedMetaDataIsAvailable' can be const. ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/moviedecoder.cpp:109:20: note: Technically the member function 'ffmpegthumbnailer::MovieDecoder::embeddedMetaDataIsAvailable' can be const. ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/moviedecoder.cpp:543:20: style: The member function 'ffmpegthumbnailer::MovieDecoder::checkRc' can be static. [functionStatic] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/moviedecoder.h:74:10: note: The member function 'ffmpegthumbnailer::MovieDecoder::checkRc' can be static. ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/moviedecoder.cpp:543:20: note: The member function 'ffmpegthumbnailer::MovieDecoder::checkRc' can be static. ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/moviedecoder.h:46:5: style: Class 'MovieDecoder' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/moviedecoder.cpp:206:64: style:inconclusive: Function 'createScaleString' argument 1 names different: declaration 'size' definition 'sizeString'. [funcArgNamesDifferent] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/moviedecoder.h:72:54: note: Function 'createScaleString' argument 1 names different: declaration 'size' definition 'sizeString'. ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/moviedecoder.cpp:206:64: note: Function 'createScaleString' argument 1 names different: declaration 'size' definition 'sizeString'. ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/pngwriter.cpp:51:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable png_voidp [valueFlowBailoutIncompleteVar] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/pngwriter.cpp:57:16: warning: Class 'PngWriter' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/pngwriter.cpp:57:16: warning: Class 'PngWriter' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/pngwriter.h:31:5: style: Class 'PngWriter' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/pngwriter.h:32:5: style: Class 'PngWriter' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/pngwriter.h:36:67: style:inconclusive: Function 'writeFrame' argument 4 names different: declaration 'quality' definition ''. [funcArgNamesDifferentUnnamed] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/rgbwriter.cpp:47:16: warning: Class 'RgbWriter' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/rgbwriter.cpp:47:16: warning: Class 'RgbWriter' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/rgbwriter.h:31:5: style: Class 'RgbWriter' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/rgbwriter.h:32:5: style: Class 'RgbWriter' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/rgbwriter.h:35:37: style:inconclusive: Function 'setText' argument 1 names different: declaration 'key' definition ''. [funcArgNamesDifferentUnnamed] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/rgbwriter.h:35:61: style:inconclusive: Function 'setText' argument 2 names different: declaration 'value' definition ''. [funcArgNamesDifferentUnnamed] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/rgbwriter.h:36:67: style:inconclusive: Function 'writeFrame' argument 4 names different: declaration 'quality' definition ''. [funcArgNamesDifferentUnnamed] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/stringoperations.cpp:35:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/stringoperations.cpp:47:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/stringoperations.cpp:61:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/videothumbnailer.cpp:105:40: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/videothumbnailer.cpp:250:118: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/videothumbnailer.cpp:297:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/videothumbnailer.cpp:343:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FLT_MAX [valueFlowBailoutIncompleteVar] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/videothumbnailer.cpp:292:26: style: The member function 'ffmpegthumbnailer::VideoThumbnailer::getExtension' can be static. [functionStatic] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/videothumbnailer.h:77:17: note: The member function 'ffmpegthumbnailer::VideoThumbnailer::getExtension' can be static. ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/videothumbnailer.cpp:292:26: note: The member function 'ffmpegthumbnailer::VideoThumbnailer::getExtension' can be static. ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/videothumbnailer.cpp:331:23: style: The member function 'ffmpegthumbnailer::VideoThumbnailer::getBestThumbnailIndex' can be static. [functionStatic] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/videothumbnailer.h:79:9: note: The member function 'ffmpegthumbnailer::VideoThumbnailer::getBestThumbnailIndex' can be static. ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/videothumbnailer.cpp:331:23: note: The member function 'ffmpegthumbnailer::VideoThumbnailer::getBestThumbnailIndex' can be static. ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/videothumbnailer.cpp:331:65: style: Parameter 'videoFrames' can be declared as reference to const [constParameterReference] ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/videothumbnailerc.cpp:167:11: style: The scope of the variable 'videoThumbnailer' can be reduced. [variableScope] ffmpegthumbnailer-2.3.0/main.c:45:75: warning: If resource allocation fails, then there is a possible null pointer dereference: imageFile [nullPointerOutOfResources] ffmpegthumbnailer-2.3.0/main.c:44:32: note: Assuming allocation function fails ffmpegthumbnailer-2.3.0/main.c:44:32: note: Assignment 'imageFile=fopen("output.jpg","wb")', assigned value is 0 ffmpegthumbnailer-2.3.0/main.c:45:75: note: Null pointer dereference ffmpegthumbnailer-2.3.0/main.cpp:180:39: error: There is an unknown macro here somewhere. Configuration is required. If PACKAGE_VERSION is a macro then please configure it. [unknownMacro] ffmpegthumbnailer-2.3.0/test/histogramtest.cpp:21:1: error: syntax error [syntaxError] ffmpegthumbnailer-2.3.0/test/testrunner.c:9:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ThumbnailerLogLevelError [valueFlowBailoutIncompleteVar] ffmpegthumbnailer-2.3.0/test/testrunner.c:21:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable TEST_DATADIR [valueFlowBailoutIncompleteVar] ffmpegthumbnailer-2.3.0/test/testrunner.c:24:17: style: Variable 'imageData' can be declared as pointer to const [constVariablePointer] ffmpegthumbnailer-2.3.0/test/testrunner.c:21:23: style: Variable 'input' is assigned a value that is never used. [unreadVariable] ffmpegthumbnailer-2.3.0/test/testrunner.c:24:27: style: Variable 'imageData' is assigned a value that is never used. [unreadVariable] ffmpegthumbnailer-2.3.0/test/videothumbnailerctest.cpp:54:5: error: syntax error [syntaxError] ffmpegthumbnailer-2.3.0/test/videothumbnailertest.cpp:31:5: error: syntax error [syntaxError] diff: head ffmpegthumbnailer-2.3.0/kffmpegthumbnailer/kffmpegthumbnailer.h:40:61: style:inconclusive: Function 'create' argument 3 names different: declaration 'height' definition ''. [funcArgNamesDifferentUnnamed] head ffmpegthumbnailer-2.3.0/kffmpegthumbnailer/kffmpegthumbnailer.h:44:52: style:inconclusive: Function 'writeConfiguration' argument 1 names different: declaration 'configurationWidget' definition ''. [funcArgNamesDifferentUnnamed] head ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/jpegwriter.h:40:37: style:inconclusive: Function 'setText' argument 1 names different: declaration 'key' definition ''. [funcArgNamesDifferentUnnamed] head ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/jpegwriter.h:40:61: style:inconclusive: Function 'setText' argument 2 names different: declaration 'value' definition ''. [funcArgNamesDifferentUnnamed] head ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/pngwriter.h:36:67: style:inconclusive: Function 'writeFrame' argument 4 names different: declaration 'quality' definition ''. [funcArgNamesDifferentUnnamed] head ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/rgbwriter.h:35:37: style:inconclusive: Function 'setText' argument 1 names different: declaration 'key' definition ''. [funcArgNamesDifferentUnnamed] head ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/rgbwriter.h:35:61: style:inconclusive: Function 'setText' argument 2 names different: declaration 'value' definition ''. [funcArgNamesDifferentUnnamed] head ffmpegthumbnailer-2.3.0/libffmpegthumbnailer/rgbwriter.h:36:67: style:inconclusive: Function 'writeFrame' argument 4 names different: declaration 'quality' definition ''. [funcArgNamesDifferentUnnamed] 2.20.0 ffmpegthumbnailer-2.3.0/main.c:46:16: warning: If resource allocation fails, then there is a possible null pointer dereference: imageFile [nullPointerOutOfResources] ffmpegthumbnailer-2.3.0/main.c:44:32: note: Assuming allocation function fails ffmpegthumbnailer-2.3.0/main.c:44:32: note: Assignment 'imageFile=fopen("output.jpg","wb")', assigned value is 0 ffmpegthumbnailer-2.3.0/main.c:46:16: note: Null pointer dereference DONE