2025-08-30 08:57 ftp://ftp.de.debian.org/debian/pool/main/d/dvbcut/dvbcut_0.7.4.orig.tar.gz 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-79-generic-x86_64-with-glibc2.39 python: 3.12.3 client-version: 1.3.67 compiler: g++ (Ubuntu 14.2.0-4ubuntu2~24.04) 14.2.0 cppcheck: head 2.18.0 head-info: 478055e (2025-08-29 18:53:24 +0200) count: 105 440 elapsed-time: 0.6 8.9 head-timing-info: old-timing-info: head results: dvbcut-0.7.4/import/stdlib.cpp:4:4: style: C-style pointer casting [cstyleCast] dvbcut-0.7.4/import/stdlib.cpp:17:32: error: va_list 'ap' was opened but not closed by va_end(). [va_end_missing] dvbcut-0.7.4/src/avframe.cpp:42:0: error: failed to evaluate #if condition, undefined function-like macro invocation: AV_VERSION_INT( ... ) [preprocessorErrorDirective] dvbcut-0.7.4/src/avframe.cpp:42:2: error: failed to evaluate #if condition, undefined function-like macro invocation: AV_VERSION_INT( ... ) [preprocessorErrorDirective] dvbcut-0.7.4/src/buffer.cpp:160:22: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable _SC_PAGESIZE [valueFlowBailoutIncompleteVar] dvbcut-0.7.4/src/buffer.cpp:171:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] dvbcut-0.7.4/src/buffer.cpp:208:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] dvbcut-0.7.4/src/buffer.cpp:280:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbcut-0.7.4/src/buffer.cpp:410:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbcut-0.7.4/src/buffer.cpp:502:30: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] dvbcut-0.7.4/src/buffer.cpp:471:11: style:inconclusive: Technically the member function 'inbuffer::getfilenum' can be const. [functionConst] dvbcut-0.7.4/src/buffer.h:194:7: note: Technically the member function 'inbuffer::getfilenum' can be const. dvbcut-0.7.4/src/buffer.cpp:471:11: note: Technically the member function 'inbuffer::getfilenum' can be const. dvbcut-0.7.4/src/buffer.cpp:50:5: warning: Class 'buffer' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] dvbcut-0.7.4/src/buffer.cpp:50:5: warning: Class 'buffer' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] dvbcut-0.7.4/src/buffer.cpp:505:16: warning: The class 'outbuffer' defines member function with name 'putdata' also defined in its parent class 'buffer'. [duplInheritedMember] dvbcut-0.7.4/src/buffer.cpp:87:22: note: Parent function 'buffer::putdata' dvbcut-0.7.4/src/buffer.cpp:505:16: note: Derived function 'outbuffer::putdata' dvbcut-0.7.4/src/buffer.h:36:3: style: Class 'buffer' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] dvbcut-0.7.4/src/buffer.h:167:3: style: Class 'inbuffer' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] dvbcut-0.7.4/src/buffer.h:205:3: style: Class 'outbuffer' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] dvbcut-0.7.4/src/buffer.cpp:79:10: warning: If memory allocation fails, then there is a possible null pointer dereference: d [nullPointerOutOfMemory] dvbcut-0.7.4/src/buffer.cpp:78:13: note: Assuming allocation function fails dvbcut-0.7.4/src/buffer.cpp:78:13: note: Assignment 'd=malloc(newsize)', assigned value is 0 dvbcut-0.7.4/src/buffer.cpp:79:10: note: Null pointer dereference dvbcut-0.7.4/src/buffer.h:71:20: style: C-style pointer casting [cstyleCast] dvbcut-0.7.4/src/buffer.h:75:20: style: C-style pointer casting [cstyleCast] dvbcut-0.7.4/src/buffer.h:173:45: style: C-style pointer casting [cstyleCast] dvbcut-0.7.4/src/buffer.cpp:64:16: style: C-style pointer casting [cstyleCast] dvbcut-0.7.4/src/buffer.cpp:79:13: style: C-style pointer casting [cstyleCast] dvbcut-0.7.4/src/buffer.cpp:103:10: style: C-style pointer casting [cstyleCast] dvbcut-0.7.4/src/buffer.cpp:115:16: style: C-style pointer casting [cstyleCast] dvbcut-0.7.4/src/buffer.cpp:127:20: style: C-style pointer casting [cstyleCast] dvbcut-0.7.4/src/buffer.cpp:142:21: style: C-style pointer casting [cstyleCast] dvbcut-0.7.4/src/buffer.cpp:296:31: style: C-style pointer casting [cstyleCast] dvbcut-0.7.4/src/buffer.cpp:308:16: style: C-style pointer casting [cstyleCast] dvbcut-0.7.4/src/buffer.cpp:316:31: style: C-style pointer casting [cstyleCast] dvbcut-0.7.4/src/buffer.cpp:426:18: style: C-style pointer casting [cstyleCast] dvbcut-0.7.4/src/buffer.cpp:458:31: style: C-style pointer casting [cstyleCast] dvbcut-0.7.4/src/buffer.cpp:518:10: style: C-style pointer casting [cstyleCast] dvbcut-0.7.4/src/buffer.cpp:154:53: style:inconclusive: Function 'inbuffer' argument 2 names different: declaration 'mmapsize' definition '_mmapsize'. [funcArgNamesDifferent] dvbcut-0.7.4/src/buffer.h:167:45: note: Function 'inbuffer' argument 2 names different: declaration 'mmapsize' definition '_mmapsize'. dvbcut-0.7.4/src/buffer.cpp:154:53: note: Function 'inbuffer' argument 2 names different: declaration 'mmapsize' definition '_mmapsize'. dvbcut-0.7.4/src/buffer.cpp:168:28: performance: Function parameter 'filename' should be passed by const reference. [passedByValue] dvbcut-0.7.4/src/buffer.cpp:186:71: performance: Function parameter 'filename' should be passed by const reference. [passedByValue] dvbcut-0.7.4/src/stream.h:69:0: error: failed to evaluate #if condition, undefined function-like macro invocation: AV_VERSION_INT( ... ) [preprocessorErrorDirective] dvbcut-0.7.4/src/stream.h:69:2: error: failed to evaluate #if condition, undefined function-like macro invocation: AV_VERSION_INT( ... ) [preprocessorErrorDirective] dvbcut-0.7.4/src/eventlistitem.h:49:12: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable evtype [valueFlowBailoutIncompleteVar] dvbcut-0.7.4/src/eventlistitem.cpp:34:56: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SmoothTransformation [valueFlowBailoutIncompleteVar] dvbcut-0.7.4/src/eventlistitem.h:49:12: debug: CheckClass::isMemberVar found used member variable 'evtype' with varid 0 [varid0] dvbcut-0.7.4/src/eventlistitem.cpp:77:29: style: C-style pointer casting [cstyleCast] dvbcut-0.7.4/src/exception.cpp:49:100: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable NoButton [valueFlowBailoutIncompleteVar] dvbcut-0.7.4/src/exportdialog.h:31:3: style: Class 'exportdialog' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] dvbcut-0.7.4/src/logoutput.cpp:36:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbcut-0.7.4/src/logoutput.cpp:42:17: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] dvbcut-0.7.4/src/logoutput.cpp:39:17: performance:inconclusive: Technically the member function 'logoutput::printmsg' can be static (but you may consider moving to unnamed namespace). [functionStatic] dvbcut-0.7.4/src/logoutput.h:33:8: note: Technically the member function 'logoutput::printmsg' can be static (but you may consider moving to unnamed namespace). dvbcut-0.7.4/src/logoutput.cpp:39:17: note: Technically the member function 'logoutput::printmsg' can be static (but you may consider moving to unnamed namespace). dvbcut-0.7.4/src/logoutput.h:41:7: style:inconclusive: Technically the member function 'logoutput::getprogress' can be const. [functionConst] dvbcut-0.7.4/src/logoutput.cpp:39:60: performance: Function parameter 'head' should be passed by const reference. [passedByValue] dvbcut-0.7.4/src/logoutput.cpp:39:80: performance: Function parameter 'tail' should be passed by const reference. [passedByValue] dvbcut-0.7.4/src/mplayererrorbase.h:28:3: style: Class 'mplayererrorbase' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] dvbcut-0.7.4/src/progressstatusbar.cpp:40:80: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Minimum [valueFlowBailoutIncompleteVar] dvbcut-0.7.4/src/progressstatusbar.h:59:16: style: Virtual function 'clickedcancel' is called from constructor 'progressstatusbar(QStatusBar*bar)' at line 56. Dynamic binding is not used. [virtualCallInConstructor] dvbcut-0.7.4/src/progressstatusbar.cpp:56:42: note: Calling clickedcancel dvbcut-0.7.4/src/progressstatusbar.h:59:16: note: clickedcancel is a virtual function dvbcut-0.7.4/src/progressstatusbar.h:47:3: style: Class 'progressstatusbar' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] dvbcut-0.7.4/src/progressstatusbar.h:48:4: style: The destructor '~progressstatusbar' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] dvbcut-0.7.4/src/logoutput.h:38:12: note: Virtual destructor in base class dvbcut-0.7.4/src/progressstatusbar.h:48:4: note: Destructor in derived class dvbcut-0.7.4/src/progressstatusbar.h:50:16: style: The function 'cancelled' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] dvbcut-0.7.4/src/logoutput.h:53:16: note: Virtual function in base class dvbcut-0.7.4/src/progressstatusbar.h:50:16: note: Function in derived class dvbcut-0.7.4/src/progressstatusbar.h:54:16: style: The function 'finish' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] dvbcut-0.7.4/src/logoutput.h:57:16: note: Virtual function in base class dvbcut-0.7.4/src/progressstatusbar.h:54:16: note: Function in derived class dvbcut-0.7.4/src/progressstatusbar.h:55:16: style: The function 'print' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] dvbcut-0.7.4/src/logoutput.h:47:16: note: Virtual function in base class dvbcut-0.7.4/src/progressstatusbar.h:55:16: note: Function in derived class dvbcut-0.7.4/src/progressstatusbar.h:58:16: style: The function 'setprogress' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] dvbcut-0.7.4/src/logoutput.h:45:16: note: Virtual function in base class dvbcut-0.7.4/src/progressstatusbar.h:58:16: note: Function in derived class dvbcut-0.7.4/src/logoutput.h:33:51: performance: Function parameter 'head' should be passed by const reference. [passedByValue] dvbcut-0.7.4/src/logoutput.h:33:71: performance: Function parameter 'tail' should be passed by const reference. [passedByValue] dvbcut-0.7.4/src/progresswindow.cpp:44:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Bold [valueFlowBailoutIncompleteVar] dvbcut-0.7.4/src/progresswindow.h:45:3: style: Class 'progresswindow' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] dvbcut-0.7.4/src/progresswindow.h:46:4: style: The destructor '~progresswindow' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] dvbcut-0.7.4/src/logoutput.h:38:12: note: Virtual destructor in base class dvbcut-0.7.4/src/progresswindow.h:46:4: note: Destructor in derived class dvbcut-0.7.4/src/progresswindow.h:47:16: style: The function 'cancelled' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] dvbcut-0.7.4/src/logoutput.h:53:16: note: Virtual function in base class dvbcut-0.7.4/src/progresswindow.h:47:16: note: Function in derived class dvbcut-0.7.4/src/progresswindow.h:51:16: style: The function 'finish' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] dvbcut-0.7.4/src/logoutput.h:57:16: note: Virtual function in base class dvbcut-0.7.4/src/progresswindow.h:51:16: note: Function in derived class dvbcut-0.7.4/src/progresswindow.h:52:16: style: The function 'print' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] dvbcut-0.7.4/src/logoutput.h:47:16: note: Virtual function in base class dvbcut-0.7.4/src/progresswindow.h:52:16: note: Function in derived class dvbcut-0.7.4/src/progresswindow.h:53:16: style: The function 'printheading' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] dvbcut-0.7.4/src/logoutput.h:48:16: note: Virtual function in base class dvbcut-0.7.4/src/progresswindow.h:53:16: note: Function in derived class dvbcut-0.7.4/src/progresswindow.h:54:16: style: The function 'printinfo' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] dvbcut-0.7.4/src/logoutput.h:49:16: note: Virtual function in base class dvbcut-0.7.4/src/progresswindow.h:54:16: note: Function in derived class dvbcut-0.7.4/src/progresswindow.h:55:16: style: The function 'printerror' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] dvbcut-0.7.4/src/logoutput.h:50:16: note: Virtual function in base class dvbcut-0.7.4/src/progresswindow.h:55:16: note: Function in derived class dvbcut-0.7.4/src/progresswindow.h:56:16: style: The function 'printwarning' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] dvbcut-0.7.4/src/logoutput.h:51:16: note: Virtual function in base class dvbcut-0.7.4/src/progresswindow.h:56:16: note: Function in derived class dvbcut-0.7.4/src/progresswindow.h:59:16: style: The function 'setprogress' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] dvbcut-0.7.4/src/logoutput.h:45:16: note: Virtual function in base class dvbcut-0.7.4/src/progresswindow.h:59:16: note: Function in derived class dvbcut-0.7.4/src/pts.cpp:60:48: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] dvbcut-0.7.4/src/pts.cpp:66:6: style: Condition '!tokens.empty()' is always true [knownConditionTrueFalse] dvbcut-0.7.4/src/pts.cpp:56:10: style: The scope of the variable 'dsec' can be reduced. [variableScope] dvbcut-0.7.4/src/pts.cpp:53:30: performance: Function parameter 'str' should be passed by const reference. [passedByValue] dvbcut-0.7.4/src/pts.cpp:99:3: style: int result is returned as long value. If the return value is long to avoid loss of information, then you have loss of information. [truncLongCastReturn] dvbcut-0.7.4/src/settings.cpp:312:64: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable second [valueFlowBailoutIncompleteVar] dvbcut-0.7.4/src/settings.cpp:64:18: warning: Member variable 'dvbcut_settings::lastdir_update' is not initialized in the constructor. [uninitMemberVar] dvbcut-0.7.4/src/settings.cpp:64:18: warning: Member variable 'dvbcut_settings::recentfiles_max' is not initialized in the constructor. [uninitMemberVar] dvbcut-0.7.4/src/settings.cpp:64:18: warning: Member variable 'dvbcut_settings::viewscalefactor' is not initialized in the constructor. [uninitMemberVar] dvbcut-0.7.4/src/settings.cpp:64:18: warning: Member variable 'dvbcut_settings::viewscalefactor_custom' is not initialized in the constructor. [uninitMemberVar] dvbcut-0.7.4/src/settings.cpp:64:18: warning: Member variable 'dvbcut_settings::wheel_increments' is not initialized in the constructor. [uninitMemberVar] dvbcut-0.7.4/src/settings.cpp:64:18: warning: Member variable 'dvbcut_settings::wheel_threshold' is not initialized in the constructor. [uninitMemberVar] dvbcut-0.7.4/src/settings.cpp:64:18: warning: Member variable 'dvbcut_settings::wheel_delta' is not initialized in the constructor. [uninitMemberVar] dvbcut-0.7.4/src/settings.cpp:64:18: warning: Member variable 'dvbcut_settings::jog_maximum' is not initialized in the constructor. [uninitMemberVar] dvbcut-0.7.4/src/settings.cpp:64:18: warning: Member variable 'dvbcut_settings::jog_threshold' is not initialized in the constructor. [uninitMemberVar] dvbcut-0.7.4/src/settings.cpp:64:18: warning: Member variable 'dvbcut_settings::jog_offset' is not initialized in the constructor. [uninitMemberVar] dvbcut-0.7.4/src/settings.cpp:64:18: warning: Member variable 'dvbcut_settings::jog_interval' is not initialized in the constructor. [uninitMemberVar] dvbcut-0.7.4/src/settings.cpp:64:18: warning: Member variable 'dvbcut_settings::lin_interval' is not initialized in the constructor. [uninitMemberVar] dvbcut-0.7.4/src/settings.cpp:64:18: warning: Member variable 'dvbcut_settings::export_format' is not initialized in the constructor. [uninitMemberVar] dvbcut-0.7.4/src/settings.cpp:64:18: warning: Member variable 'dvbcut_settings::start_bof' is not initialized in the constructor. [uninitMemberVar] dvbcut-0.7.4/src/settings.cpp:64:18: warning: Member variable 'dvbcut_settings::stop_eof' is not initialized in the constructor. [uninitMemberVar] dvbcut-0.7.4/src/settings.cpp:64:18: warning: Member variable 'dvbcut_settings::snapshot_quality' is not initialized in the constructor. [uninitMemberVar] dvbcut-0.7.4/src/settings.cpp:64:18: warning: Member variable 'dvbcut_settings::snapshot_first' is not initialized in the constructor. [uninitMemberVar] dvbcut-0.7.4/src/settings.cpp:64:18: warning: Member variable 'dvbcut_settings::snapshot_width' is not initialized in the constructor. [uninitMemberVar] dvbcut-0.7.4/src/settings.cpp:64:18: warning: Member variable 'dvbcut_settings::snapshot_range' is not initialized in the constructor. [uninitMemberVar] dvbcut-0.7.4/src/settings.cpp:64:18: warning: Member variable 'dvbcut_settings::snapshot_samples' is not initialized in the constructor. [uninitMemberVar] dvbcut-0.7.4/src/settings.cpp:64:18: warning: Member variable 'dvbcut_settings::chapter_interval' is not initialized in the constructor. [uninitMemberVar] dvbcut-0.7.4/src/settings.cpp:64:18: warning: Member variable 'dvbcut_settings::chapter_tolerance' is not initialized in the constructor. [uninitMemberVar] dvbcut-0.7.4/src/settings.cpp:64:18: warning: Member variable 'dvbcut_settings::chapter_threshold' is not initialized in the constructor. [uninitMemberVar] dvbcut-0.7.4/src/settings.cpp:64:18: warning: Member variable 'dvbcut_settings::chapter_minimum' is not initialized in the constructor. [uninitMemberVar] dvbcut-0.7.4/src/settings.cpp:64:18: warning: Member variable 'dvbcut_settings::search_dups_range' is not initialized in the constructor. [uninitMemberVar] dvbcut-0.7.4/src/settings.cpp:297:19: style: Local variable 'keys' shadows outer variable [shadowVariable] dvbcut-0.7.4/src/settings.cpp:289:17: note: Shadowed declaration dvbcut-0.7.4/src/settings.cpp:297:19: note: Shadow variable dvbcut-0.7.4/src/settings.cpp:310:89: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] diff: 2.18.0 dvbcut-0.7.4/src/avframe.cpp:110:22: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/avframe.cpp:110:58: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_PIX_FMT_RGB24 [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/avframe.cpp:120:18: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 dvbcut-0.7.4/src/avframe.cpp:129:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 dvbcut-0.7.4/src/avframe.cpp:129:58: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] head dvbcut-0.7.4/src/avframe.cpp:42:0: error: failed to evaluate #if condition, undefined function-like macro invocation: AV_VERSION_INT( ... ) [preprocessorErrorDirective] head dvbcut-0.7.4/src/avframe.cpp:42:2: error: failed to evaluate #if condition, undefined function-like macro invocation: AV_VERSION_INT( ... ) [preprocessorErrorDirective] 2.18.0 dvbcut-0.7.4/src/avframe.cpp:52:15: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/avframe.cpp:54:18: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 dvbcut-0.7.4/src/avframe.cpp:55:18: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 dvbcut-0.7.4/src/avframe.cpp:58:19: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 dvbcut-0.7.4/src/avframe.cpp:58:35: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 dvbcut-0.7.4/src/avframe.cpp:70:29: style: Variable 'f->quality' is reassigned a value before the old one has been used. [redundantAssignment] dvbcut-0.7.4/src/avframe.cpp:63:29: note: f->quality is assigned dvbcut-0.7.4/src/avframe.cpp:70:29: note: f->quality is overwritten 2.18.0 dvbcut-0.7.4/src/buffer.cpp:50:5: warning: Class 'buffer' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] head dvbcut-0.7.4/src/buffer.cpp:50:5: warning: Class 'buffer' does not have a copy constructor which is recommended since it has dynamic memory/resource management. [noCopyConstructor] 2.18.0 dvbcut-0.7.4/src/buffer.cpp:50:5: warning: Class 'buffer' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] head dvbcut-0.7.4/src/buffer.cpp:50:5: warning: Class 'buffer' does not have a operator= which is recommended since it has dynamic memory/resource management. [noOperatorEq] 2.18.0 dvbcut-0.7.4/src/buffer.h:210:7: warning: The class 'outbuffer' defines member function with name 'putdata' also defined in its parent class 'buffer'. [duplInheritedMember] dvbcut-0.7.4/src/buffer.h:101:16: note: Parent function 'buffer::putdata' dvbcut-0.7.4/src/buffer.h:210:7: note: Derived function 'outbuffer::putdata' 2.18.0 dvbcut-0.7.4/src/differenceimageprovider.cpp:70:19: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/differenceimageprovider.cpp:71:20: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/differenceimageprovider.h:35:16: style: The function 'decodepicture' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] dvbcut-0.7.4/src/imageprovider.h:49:16: note: Virtual function in base class dvbcut-0.7.4/src/differenceimageprovider.h:35:16: note: Function in derived class 2.18.0 dvbcut-0.7.4/src/differenceimageprovider.h:41:4: style: The destructor '~differenceimageprovider' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] dvbcut-0.7.4/src/imageprovider.h:53:12: note: Virtual destructor in base class dvbcut-0.7.4/src/differenceimageprovider.h:41:4: note: Destructor in derived class 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:1050:49: style:inconclusive: Function 'editConvert' argument 1 names different: declaration 'options' definition 'option'. [funcArgNamesDifferent] dvbcut-0.7.4/src/dvbcut.h:186:51: note: Function 'editConvert' argument 1 names different: declaration 'options' definition 'option'. dvbcut-0.7.4/src/dvbcut.cpp:1050:49: note: Function 'editConvert' argument 1 names different: declaration 'options' definition 'option'. 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:105:18: style: The function 'setbusy' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] dvbcut-0.7.4/src/busyindicator.h:29:16: note: Virtual function in base class dvbcut-0.7.4/src/dvbcut.cpp:105:18: note: Function in derived class 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:105:18: style: Virtual function 'setbusy' is called from destructor '~dvbcutbusy()' at line 101. Dynamic binding is not used. [virtualCallInConstructor] dvbcut-0.7.4/src/dvbcut.cpp:101:9: note: Calling setbusy dvbcut-0.7.4/src/dvbcut.cpp:105:18: note: setbusy is a virtual function 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:105:18: style: Virtual function 'setbusy' is called from destructor '~dvbcutbusy()' at line 103. Dynamic binding is not used. [virtualCallInConstructor] dvbcut-0.7.4/src/dvbcut.cpp:103:9: note: Calling setbusy dvbcut-0.7.4/src/dvbcut.cpp:105:18: note: setbusy is a virtual function 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:1149:25: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:1150:26: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:1172:24: style: Variable 'eli' can be declared as pointer to const [constVariablePointer] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:1192:19: style: Local variable 'imgp' shadows outer variable [shadowVariable] dvbcut-0.7.4/src/dvbcut.h:105:18: note: Shadowed declaration dvbcut-0.7.4/src/dvbcut.cpp:1192:19: note: Shadow variable 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:122:51: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WaitCursor [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:1344:45: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable StandardOutput [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:134:29: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SH_Slider_AbsoluteSetButtons [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:142:37: performance: Function parameter 'file' should be passed by const reference. [passedByValue] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:1486:18: style: Variable 'item' can be declared as pointer to const [constVariablePointer] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:1642:7: style: The scope of the variable 'inpic' can be reduced. [variableScope] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:1734:0: style: Consider using std::any_of algorithm instead of a raw loop. [useStlAlgorithm] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:1792:11: style: The scope of the variable 'menuitem' can be reduced. [variableScope] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:1806:89: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable second [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:1927:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable ReadOnly [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:199:101: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable SP_DialogOpenButton [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:2019:14: style: Local variable 'busy' shadows outer variable [shadowVariable] dvbcut-0.7.4/src/dvbcut.h:106:7: note: Shadowed declaration dvbcut-0.7.4/src/dvbcut.cpp:2019:14: note: Shadow variable 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:2332:23: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:2336:19: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AltModifier [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:2349:21: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:2404:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:2421:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:2496:19: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:2552:20: style: Variable 'item' can be declared as pointer to const [constVariablePointer] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:265:16: performance: Ineffective call of function 'substr' because a prefix of the string is assigned to itself. Use resize() or pop_back() instead. [uselessCallsSubstr] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:2683:38: performance: Function parameter 'locale' should be passed by const reference. [passedByValue] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:284:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Yes [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:304:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable WriteOnly [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:337:20: style: Variable 'eli' can be declared as pointer to const [constVariablePointer] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:381:20: style: Variable 'eli' can be declared as pointer to const [constVariablePointer] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:396:44: performance: Function parameter 'piclist' should be passed by const reference. [passedByValue] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:442:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable Yes [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:446:12: style: The scope of the variable 'i' can be reduced. [variableScope] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:483:60: style:inconclusive: Function 'chooseBestPicture' argument 3 names different: declaration 'smaples' definition 'samples'. [funcArgNamesDifferent] dvbcut-0.7.4/src/dvbcut.h:141:54: note: Function 'chooseBestPicture' argument 3 names different: declaration 'smaples' definition 'samples'. dvbcut-0.7.4/src/dvbcut.cpp:483:60: note: Function 'chooseBestPicture' argument 3 names different: declaration 'smaples' definition 'samples'. 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:487:18: style: The scope of the variable 'w' can be reduced. [variableScope] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:487:21: style: The scope of the variable 'h' can be reduced. [variableScope] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:487:24: style: The scope of the variable 'pic' can be reduced. [variableScope] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:487:29: style: The scope of the variable 'norm' can be reduced. [variableScope] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:487:35: style: The scope of the variable 'colors' can be reduced. [variableScope] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:489:10: style: The scope of the variable 'entropy' can be reduced. [variableScope] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:556:18: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:575:21: performance: Ineffective call of function 'substr' because a prefix of the string is assigned to itself. Use resize() or pop_back() instead. [uselessCallsSubstr] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:663:53: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable npos [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:775:17: style: The scope of the variable 'stoppic' can be reduced. [variableScope] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:775:7: style: The scope of the variable 'startpic' can be reduced. [variableScope] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:776:17: style: Variable 'startpts' is assigned a value that is never used. [unreadVariable] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:776:38: style: The scope of the variable 'stoppts' can be reduced. [variableScope] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:831:11: style: Local variable 'irc' shadows outer variable [shadowVariable] dvbcut-0.7.4/src/dvbcut.cpp:823:9: note: Shadowed declaration dvbcut-0.7.4/src/dvbcut.cpp:831:11: note: Shadow variable 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:891:20: style: Variable 'eli' can be declared as pointer to const [constVariablePointer] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:955:24: warning: Either the condition 'it==quick_picture_lookup.end()' is redundant or there is possible dereference of an invalid iterator: it. [derefInvalidIteratorRedundantCheck] dvbcut-0.7.4/src/dvbcut.cpp:958:15: note: Assuming that condition 'it==quick_picture_lookup.end()' is not redundant dvbcut-0.7.4/src/dvbcut.cpp:955:24: note: Dereference of an invalid iterator 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:955:41: warning: Either the condition 'it==quick_picture_lookup.end()' is redundant or there is possible dereference of an invalid iterator: it. [derefInvalidIteratorRedundantCheck] dvbcut-0.7.4/src/dvbcut.cpp:958:15: note: Assuming that condition 'it==quick_picture_lookup.end()' is not redundant dvbcut-0.7.4/src/dvbcut.cpp:955:41: note: Dereference of an invalid iterator 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:957:45: warning: Either the condition 'it==quick_picture_lookup.end()' is redundant or there is possible dereference of an invalid iterator: it. [derefInvalidIteratorRedundantCheck] dvbcut-0.7.4/src/dvbcut.cpp:958:15: note: Assuming that condition 'it==quick_picture_lookup.end()' is not redundant dvbcut-0.7.4/src/dvbcut.cpp:957:45: note: Dereference of an invalid iterator 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:960:9: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:96:5: style: Class 'dvbcutbusy' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:978:26: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:979:26: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/dvbcut.cpp:98:6: style: The destructor '~dvbcutbusy' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] dvbcut-0.7.4/src/busyindicator.h:27:12: note: Virtual destructor in base class dvbcut-0.7.4/src/dvbcut.cpp:98:6: note: Destructor in derived class 2.18.0 dvbcut-0.7.4/src/dvbcut.h:160:7: style:inconclusive: Either there is a missing 'override', or the member function 'dvbcut::getTimePerFrame' can be const. [functionConst] 2.18.0 dvbcut-0.7.4/src/dvbcut.h:187:16: style: Virtual function 'abouttoshoweditconvert' is called from constructor 'dvbcut()' at line 197. Dynamic binding is not used. [virtualCallInConstructor] dvbcut-0.7.4/src/dvbcut.cpp:197:61: note: Calling abouttoshoweditconvert dvbcut-0.7.4/src/dvbcut.h:187:16: note: abouttoshoweditconvert is a virtual function 2.18.0 dvbcut-0.7.4/src/dvbcut.h:212:16: style: Virtual function 'audiotrackchosen' is called from constructor 'dvbcut()' at line 187. Dynamic binding is not used. [virtualCallInConstructor] dvbcut-0.7.4/src/dvbcut.cpp:187:66: note: Calling audiotrackchosen dvbcut-0.7.4/src/dvbcut.h:212:16: note: audiotrackchosen is a virtual function 2.18.0 dvbcut-0.7.4/src/dvbcut.h:213:16: style: Virtual function 'loadrecentfile' is called from constructor 'dvbcut()' at line 191. Dynamic binding is not used. [virtualCallInConstructor] dvbcut-0.7.4/src/dvbcut.cpp:191:67: note: Calling loadrecentfile dvbcut-0.7.4/src/dvbcut.h:213:16: note: loadrecentfile is a virtual function 2.18.0 dvbcut-0.7.4/src/dvbcut.h:214:16: style: Virtual function 'abouttoshowrecentfiles' is called from constructor 'dvbcut()' at line 192. Dynamic binding is not used. [virtualCallInConstructor] dvbcut-0.7.4/src/dvbcut.cpp:192:61: note: Calling abouttoshowrecentfiles dvbcut-0.7.4/src/dvbcut.h:214:16: note: abouttoshowrecentfiles is a virtual function 2.18.0 dvbcut-0.7.4/src/imageprovider.cpp:62:31: style: Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm] 2.18.0 dvbcut-0.7.4/src/imageprovider.cpp:65:33: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable second [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/imageprovider.cpp:77:31: style: Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm] 2.18.0 dvbcut-0.7.4/src/imageprovider.h:52:3: style: Class 'imageprovider' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] 2.18.0 dvbcut-0.7.4/src/index.cpp:109:7: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/index.cpp:158:23: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/index.cpp:170:25: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/index.cpp:197:14: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/index.cpp:223:14: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/index.cpp:230:14: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/index.cpp:244:15: style: The scope of the variable 'epsilon' can be reduced. [variableScope] 2.18.0 dvbcut-0.7.4/src/index.cpp:282:11: error: Common realloc mistake: 'p' nulled but not freed upon failure [memleakOnRealloc] 2.18.0 dvbcut-0.7.4/src/index.cpp:282:13: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/index.cpp:282:31: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/index.cpp:370:14: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/index.cpp:386:20: style: Variable 'last_non_b_pic' is assigned a value that is never used. [unreadVariable] 2.18.0 dvbcut-0.7.4/src/index.cpp:396:27: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/index.cpp:396:7: error: Common realloc mistake: 'p' nulled but not freed upon failure [memleakOnRealloc] 2.18.0 dvbcut-0.7.4/src/index.cpp:396:9: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/index.cpp:407:27: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/index.cpp:407:7: error: Common realloc mistake: 'p' nulled but not freed upon failure [memleakOnRealloc] 2.18.0 dvbcut-0.7.4/src/index.cpp:407:9: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/index.cpp:413:21: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/index.cpp:420:22: style: Variable 'pictureswritten' is assigned a value that is never used. [unreadVariable] 2.18.0 dvbcut-0.7.4/src/index.cpp:448:5: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable errno [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/index.cpp:452:20: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/index.cpp:470:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/index.cpp:489:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_RDONLY [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/index.cpp:506:12: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/index.cpp:506:30: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/index.cpp:506:7: error: Common realloc mistake: 'data' nulled but not freed upon failure [memleakOnRealloc] 2.18.0 dvbcut-0.7.4/src/index.cpp:539:9: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 dvbcut-0.7.4/src/index.cpp:551:23: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/index.cpp:551:5: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/index.cpp:557:12: style: The scope of the variable 'h' can be reduced. [variableScope] 2.18.0 dvbcut-0.7.4/src/index.cpp:557:9: style: The scope of the variable 'w' can be reduced. [variableScope] 2.18.0 dvbcut-0.7.4/src/index.cpp:581:11: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] 2.18.0 dvbcut-0.7.4/src/index.cpp:581:11: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'int'. [invalidPrintfArgType_uint] 2.18.0 dvbcut-0.7.4/src/index.cpp:583:11: warning: %u in format string (no. 1) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] 2.18.0 dvbcut-0.7.4/src/index.cpp:583:11: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] 2.18.0 dvbcut-0.7.4/src/index.cpp:583:11: warning: %u in format string (no. 3) requires 'unsigned int' but the argument type is 'signed int'. [invalidPrintfArgType_uint] 2.18.0 dvbcut-0.7.4/src/index.cpp:59:23: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/index.cpp:611:36: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 dvbcut-0.7.4/src/index.cpp:611:54: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/index.cpp:612:54: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 dvbcut-0.7.4/src/index.cpp:612:72: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/index.cpp:88:35: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable O_WRONLY [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/index.h:117:29: style: Parameter 'a' can be declared as reference to const [constParameterReference] 2.18.0 dvbcut-0.7.4/src/index.h:140:3: style: Class 'index' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] 2.18.0 dvbcut-0.7.4/src/index.h:140:3: warning: Member variable 'index::realpictures' is not initialized in the constructor. [uninitMemberVar] 2.18.0 dvbcut-0.7.4/src/index.h:140:3: warning: Member variable 'index::skipfirst' is not initialized in the constructor. [uninitMemberVar] 2.18.0 dvbcut-0.7.4/src/lavfmuxer.cpp:132:26: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AVFMT_NOFILE [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/lavfmuxer.cpp:47:46: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_TIME_BASE [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/lavfmuxer.cpp:90:25: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/lavfmuxer.h:61:4: style: The destructor '~lavfmuxer' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] dvbcut-0.7.4/src/muxer.h:42:12: note: Virtual destructor in base class dvbcut-0.7.4/src/lavfmuxer.h:61:4: note: Destructor in derived class 2.18.0 dvbcut-0.7.4/src/lavfmuxer.h:63:8: style: The function 'putpacket' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] dvbcut-0.7.4/src/muxer.h:74:16: note: Virtual function in base class dvbcut-0.7.4/src/lavfmuxer.h:63:8: note: Function in derived class 2.18.0 dvbcut-0.7.4/src/lavfmuxer.h:69:17: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/lavfmuxer.h:75:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_PKT_FLAG_KEY [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/lavfmuxer.h:83:16: style: The function 'ready' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] dvbcut-0.7.4/src/muxer.h:75:16: note: Virtual function in base class dvbcut-0.7.4/src/lavfmuxer.h:83:16: note: Function in derived class 2.18.0 dvbcut-0.7.4/src/lavfmuxer.h:87:16: style: The function 'finish' overrides a function in a base class but is identical to the overridden function [uselessOverride] dvbcut-0.7.4/src/muxer.h:79:16: note: Virtual function in base class dvbcut-0.7.4/src/lavfmuxer.h:87:16: note: Function in derived class 2.18.0 dvbcut-0.7.4/src/lavfmuxer.h:87:16: style: The function 'finish' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] dvbcut-0.7.4/src/muxer.h:79:16: note: Virtual function in base class dvbcut-0.7.4/src/lavfmuxer.h:87:16: note: Function in derived class 2.18.0 dvbcut-0.7.4/src/main.cpp:119:21: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] 2.18.0 dvbcut-0.7.4/src/main.cpp:123:17: portability: Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. [prohibitedstrtokCalled] 2.18.0 dvbcut-0.7.4/src/main.cpp:157:68: performance: Prefer prefix ++/-- operators for non-primitive types. [postfixOperator] 2.18.0 dvbcut-0.7.4/src/main.cpp:161:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/main.cpp:244:18: style: The scope of the variable 'pos' can be reduced. [variableScope] 2.18.0 dvbcut-0.7.4/src/main.cpp:54:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/main.cpp:99:9: style: Variable 'i' is assigned a value that is never used. [unreadVariable] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:114:3: warning: Class 'mpegmuxer' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:114:3: warning: Class 'mpegmuxer' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:115:3: style: Obsolescent function 'bzero' called. It is recommended to use 'memset' instead. [prohibitedbzeroCalled] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:115:9: warning: If memory allocation fails, then there is a possible null pointer dereference: systemhdr [nullPointerOutOfMemory] dvbcut-0.7.4/src/mpegmuxer.cpp:114:19: note: Assuming allocation function fails dvbcut-0.7.4/src/mpegmuxer.cpp:114:19: note: Assignment 'systemhdr=malloc(systemhdrlen)', assigned value is 0 dvbcut-0.7.4/src/mpegmuxer.cpp:115:9: note: Null pointer dereference 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:117:4: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:117:4: warning: If memory allocation fails, then there is a possible null pointer dereference: (systemhdr_s*)systemhdr [nullPointerOutOfMemory] dvbcut-0.7.4/src/mpegmuxer.cpp:114:19: note: Assuming allocation function fails dvbcut-0.7.4/src/mpegmuxer.cpp:114:19: note: Assignment 'systemhdr=malloc(systemhdrlen)', assigned value is 0 dvbcut-0.7.4/src/mpegmuxer.cpp:117:4: note: Null pointer dereference 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:130:18: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:130:6: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:131:18: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:131:6: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:132:18: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:132:6: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:133:18: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:133:6: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:138:3: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable allbuffers [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:169:10: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:177:21: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:185:16: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:316:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:340:48: style: Local variable 'it' shadows outer variable [shadowVariable] dvbcut-0.7.4/src/mpegmuxer.cpp:284:34: note: Shadowed declaration dvbcut-0.7.4/src/mpegmuxer.cpp:340:48: note: Shadow variable 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:375:0: style: Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:402:30: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:43:38: style: Parameter 'a' can be declared as pointer to const [constParameterPointer] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:43:60: style: Parameter 'b' can be declared as pointer to const [constParameterPointer] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:43:8: style:inconclusive: Technically the member function 'streamlistsort::operator()' can be const. [functionConst] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:514:16: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:521:8: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:523:8: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:576:10: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:600:21: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:602:26: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:616:31: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:643:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:643:7: portability: %lu in format string (no. 3) requires 'unsigned long' but the argument type is 'std::size_t {aka unsigned long}'. [invalidPrintfArgType_uint] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:643:7: portability: %lu in format string (no. 4) requires 'unsigned long' but the argument type is 'std::size_t {aka unsigned long}'. [invalidPrintfArgType_uint] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:657:3: warning: Class 'au' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:657:3: warning: Class 'au' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:658:10: warning: If memory allocation fails, then there is a possible null pointer dereference: data [nullPointerOutOfMemory] dvbcut-0.7.4/src/mpegmuxer.cpp:657:14: note: Assuming allocation function fails dvbcut-0.7.4/src/mpegmuxer.cpp:657:14: note: Assignment 'data=malloc(size)', assigned value is 0 dvbcut-0.7.4/src/mpegmuxer.cpp:658:10: note: Null pointer dereference 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:691:3: warning: Class 'pack' does not have a copy constructor which is recommended since it has dynamic memory/resource allocation(s). [noCopyConstructor] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:691:3: warning: Class 'pack' does not have a operator= which is recommended since it has dynamic memory/resource allocation(s). [noOperatorEq] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:693:4: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:693:4: warning: If memory allocation fails, then there is a possible null pointer dereference: (uint32_t*)data [nullPointerOutOfMemory] dvbcut-0.7.4/src/mpegmuxer.cpp:691:14: note: Assuming allocation function fails dvbcut-0.7.4/src/mpegmuxer.cpp:691:14: note: Assignment 'data=malloc(size)', assigned value is 0 dvbcut-0.7.4/src/mpegmuxer.cpp:693:4: note: Null pointer dereference 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:694:16: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:694:27: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] dvbcut-0.7.4/src/mpegmuxer.cpp:691:14: note: Assuming allocation function fails dvbcut-0.7.4/src/mpegmuxer.cpp:691:14: note: Assignment 'data=malloc(size)', assigned value is 0 dvbcut-0.7.4/src/mpegmuxer.cpp:694:27: note: Null pointer addition 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:694:4: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:696:6: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:696:6: warning: If memory allocation fails, then there is a possible null pointer dereference: (unsigned char*)data [nullPointerOutOfMemory] dvbcut-0.7.4/src/mpegmuxer.cpp:691:14: note: Assuming allocation function fails dvbcut-0.7.4/src/mpegmuxer.cpp:691:14: note: Assignment 'data=malloc(size)', assigned value is 0 dvbcut-0.7.4/src/mpegmuxer.cpp:696:6: note: Null pointer dereference 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:701:23: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:701:34: error: If memory allocation fails: pointer addition with NULL pointer. [nullPointerArithmeticOutOfMemory] dvbcut-0.7.4/src/mpegmuxer.cpp:691:14: note: Assuming allocation function fails dvbcut-0.7.4/src/mpegmuxer.cpp:691:14: note: Assignment 'data=malloc(size)', assigned value is 0 dvbcut-0.7.4/src/mpegmuxer.cpp:701:34: note: Null pointer addition 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:710:6: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:711:18: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:711:6: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:712:12: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:716:6: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:716:6: warning: If memory allocation fails, then there is a possible null pointer dereference: (unsigned char*)data [nullPointerOutOfMemory] dvbcut-0.7.4/src/mpegmuxer.cpp:691:14: note: Assuming allocation function fails dvbcut-0.7.4/src/mpegmuxer.cpp:691:14: note: Assignment 'data=malloc(size)', assigned value is 0 dvbcut-0.7.4/src/mpegmuxer.cpp:716:6: note: Null pointer dereference 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:729:14: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:744:16: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:756:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:83:57: style: Parameter 'mpg' can be declared as reference to const. However it seems that 'mpegmuxer' is a callback function, if 'mpg' is declared with const you might also need to cast function pointer(s). [constParameterCallback] dvbcut-0.7.4/src/mpegmuxer.h:216:18: note: You might need to cast the function pointer here dvbcut-0.7.4/src/mpegmuxer.cpp:83:57: note: Parameter 'mpg' can be declared as reference to const 2.18.0 dvbcut-0.7.4/src/mpegmuxer.cpp:83:89: style:inconclusive: Function 'mpegmuxer' argument 4 names different: declaration 'dvdnavpackets' definition 'dvd'. [funcArgNamesDifferent] dvbcut-0.7.4/src/mpegmuxer.h:312:80: note: Function 'mpegmuxer' argument 4 names different: declaration 'dvdnavpackets' definition 'dvd'. dvbcut-0.7.4/src/mpegmuxer.cpp:83:89: note: Function 'mpegmuxer' argument 4 names different: declaration 'dvdnavpackets' definition 'dvd'. 2.18.0 dvbcut-0.7.4/src/mpegmuxer.h:100:11: style:inconclusive: Technically the member function 'mpegmuxer::au::getdts' can be const. [functionConst] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.h:104:9: style:inconclusive: Technically the member function 'mpegmuxer::au::getflags' can be const. [functionConst] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.h:144:22: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.h:195:10: style:inconclusive: Technically the member function 'mpegmuxer::pack::operator<' can be const. [functionConst] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.h:313:4: style: The destructor '~mpegmuxer' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] dvbcut-0.7.4/src/muxer.h:42:12: note: Virtual destructor in base class dvbcut-0.7.4/src/mpegmuxer.h:313:4: note: Destructor in derived class 2.18.0 dvbcut-0.7.4/src/mpegmuxer.h:315:16: style: The function 'putpacket' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] dvbcut-0.7.4/src/muxer.h:74:16: note: Virtual function in base class dvbcut-0.7.4/src/mpegmuxer.h:315:16: note: Function in derived class 2.18.0 dvbcut-0.7.4/src/mpegmuxer.h:316:16: style: The function 'ready' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] dvbcut-0.7.4/src/muxer.h:75:16: note: Virtual function in base class dvbcut-0.7.4/src/mpegmuxer.h:316:16: note: Function in derived class 2.18.0 dvbcut-0.7.4/src/mpegmuxer.h:320:16: style: The function 'finish' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] dvbcut-0.7.4/src/muxer.h:79:16: note: Virtual function in base class dvbcut-0.7.4/src/mpegmuxer.h:320:16: note: Function in derived class 2.18.0 dvbcut-0.7.4/src/mpegmuxer.h:49:9: style:inconclusive: Technically the member function 'mpegmuxer::bufferremoval::bytes' can be const. [functionConst] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.h:53:11: style:inconclusive: Technically the member function 'mpegmuxer::bufferremoval::scr' can be const. [functionConst] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.h:76:22: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.h:78:9: style:inconclusive: Technically the member function 'mpegmuxer::au::getsize' can be const. [functionConst] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.h:82:10: style:inconclusive: Technically the member function 'mpegmuxer::au::incomplete' can be const. [functionConst] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.h:86:9: style:inconclusive: Technically the member function 'mpegmuxer::au::getpos' can be const. [functionConst] 2.18.0 dvbcut-0.7.4/src/mpegmuxer.h:96:11: style:inconclusive: Technically the member function 'mpegmuxer::au::getpts' can be const. [functionConst] 2.18.0 dvbcut-0.7.4/src/mpgfile.cpp:107:16: style: Local variable 's' shadows outer variable [shadowVariable] dvbcut-0.7.4/src/mpgfile.h:49:10: note: Shadowed declaration dvbcut-0.7.4/src/mpgfile.cpp:107:16: note: Shadow variable 2.18.0 dvbcut-0.7.4/src/mpgfile.cpp:122:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/mpgfile.cpp:159:27: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/mpgfile.cpp:162:19: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/mpgfile.cpp:246:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AVMEDIA_TYPE_VIDEO [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/mpgfile.cpp:346:15: performance:inconclusive: Technically the member function 'mpgfile::playaudio' can be static (but you may consider moving to unnamed namespace). [functionStatic] dvbcut-0.7.4/src/mpgfile.h:219:8: note: Technically the member function 'mpgfile::playaudio' can be static (but you may consider moving to unnamed namespace). dvbcut-0.7.4/src/mpgfile.cpp:346:15: note: Technically the member function 'mpgfile::playaudio' can be static (but you may consider moving to unnamed namespace). 2.18.0 dvbcut-0.7.4/src/mpgfile.cpp:351:60: style:inconclusive: Function 'savempg' argument 4 names different: declaration 'progresspics' definition 'savedpics'. [funcArgNamesDifferent] dvbcut-0.7.4/src/mpgfile.h:220:53: note: Function 'savempg' argument 4 names different: declaration 'progresspics' definition 'savedpics'. dvbcut-0.7.4/src/mpgfile.cpp:351:60: note: Function 'savempg' argument 4 names different: declaration 'progresspics' definition 'savedpics'. 2.18.0 dvbcut-0.7.4/src/mpgfile.cpp:351:75: style:inconclusive: Function 'savempg' argument 5 names different: declaration 'progresstotal' definition 'savepics'. [funcArgNamesDifferent] dvbcut-0.7.4/src/mpgfile.h:221:20: note: Function 'savempg' argument 5 names different: declaration 'progresstotal' definition 'savepics'. dvbcut-0.7.4/src/mpgfile.cpp:351:75: note: Function 'savempg' argument 5 names different: declaration 'progresstotal' definition 'savepics'. 2.18.0 dvbcut-0.7.4/src/mpgfile.cpp:515:13: style: The scope of the variable 'seqoff' can be reduced. [variableScope] 2.18.0 dvbcut-0.7.4/src/mpgfile.cpp:520:24: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/mpgfile.cpp:527:22: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 dvbcut-0.7.4/src/mpgfile.cpp:553:25: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/mpgfile.cpp:562:25: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/mpgfile.cpp:626:40: error: Dereference of an invalid iterator: it [derefInvalidIterator] dvbcut-0.7.4/src/mpgfile.cpp:620:45: note: Assuming that condition 'it!=sd->itemlist().end()' is not redundant dvbcut-0.7.4/src/mpgfile.cpp:626:40: note: Dereference of an invalid iterator 2.18.0 dvbcut-0.7.4/src/mpgfile.cpp:630:17: portability: %lu in format string (no. 3) requires 'unsigned long' but the argument type is 'std::size_t {aka unsigned long}'. [invalidPrintfArgType_uint] 2.18.0 dvbcut-0.7.4/src/mpgfile.cpp:673:15: style: Local variable 'shift' shadows outer variable [shadowVariable] dvbcut-0.7.4/src/mpgfile.cpp:394:9: note: Shadowed declaration dvbcut-0.7.4/src/mpgfile.cpp:673:15: note: Shadow variable 2.18.0 dvbcut-0.7.4/src/mpgfile.cpp:706:77: style:inconclusive: Function 'recodevideo' argument 5 names different: declaration 'progresspics' definition 'savedpics'. [funcArgNamesDifferent] dvbcut-0.7.4/src/mpgfile.h:223:24: note: Function 'recodevideo' argument 5 names different: declaration 'progresspics' definition 'savedpics'. dvbcut-0.7.4/src/mpgfile.cpp:706:77: note: Function 'recodevideo' argument 5 names different: declaration 'progresspics' definition 'savedpics'. 2.18.0 dvbcut-0.7.4/src/mpgfile.cpp:706:91: style:inconclusive: Function 'recodevideo' argument 6 names different: declaration 'progresstotal' definition 'savepics'. [funcArgNamesDifferent] dvbcut-0.7.4/src/mpgfile.h:223:44: note: Function 'recodevideo' argument 6 names different: declaration 'progresstotal' definition 'savepics'. dvbcut-0.7.4/src/mpgfile.cpp:706:91: note: Function 'recodevideo' argument 6 names different: declaration 'progresstotal' definition 'savepics'. 2.18.0 dvbcut-0.7.4/src/mpgfile.cpp:712:107: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable CodecForTr [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/mpgfile.cpp:741:15: style: Local variable 'buf' shadows outer variable [shadowVariable] dvbcut-0.7.4/src/mpgfile.h:48:13: note: Shadowed declaration dvbcut-0.7.4/src/mpgfile.cpp:741:15: note: Shadow variable 2.18.0 dvbcut-0.7.4/src/mpgfile.cpp:741:19: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/mpgfile.cpp:842:18: performance:inconclusive: Technically the member function 'mpgfile::readfile' can be static (but you may consider moving to unnamed namespace). [functionStatic] dvbcut-0.7.4/src/mpgfile.h:225:11: note: Technically the member function 'mpgfile::readfile' can be static (but you may consider moving to unnamed namespace). dvbcut-0.7.4/src/mpgfile.cpp:842:18: note: Technically the member function 'mpgfile::readfile' can be static (but you may consider moving to unnamed namespace). 2.18.0 dvbcut-0.7.4/src/mpgfile.cpp:842:39: performance: Function parameter 'filename' should be passed by const reference. [passedByValue] 2.18.0 dvbcut-0.7.4/src/mpgfile.cpp:856:13: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/mpgfile.cpp:856:4: warning: Either the condition 'buffer==NULL' is redundant or there is possible null pointer dereference: buffer. [nullPointerRedundantCheck] dvbcut-0.7.4/src/mpgfile.cpp:857:14: note: Assuming that condition 'buffer==NULL' is not redundant dvbcut-0.7.4/src/mpgfile.cpp:856:4: note: Null pointer dereference 2.18.0 dvbcut-0.7.4/src/mpgfile.h:140:38: style: The scope of the variable 'mid' can be reduced. [variableScope] 2.18.0 dvbcut-0.7.4/src/mpgfile.h:143:18: style: The scope of the variable 'midpos' can be reduced. [variableScope] 2.18.0 dvbcut-0.7.4/src/mpgfile.h:207:7: style:inconclusive: Technically the member function 'mpgfile::getwidth' can be const. [functionConst] 2.18.0 dvbcut-0.7.4/src/mpgfile.h:211:7: style:inconclusive: Technically the member function 'mpgfile::getheight' can be const. [functionConst] 2.18.0 dvbcut-0.7.4/src/mpgfile.h:227:16: style:inconclusive: Technically the member function 'mpgfile::getfilesize' can be const. [functionConst] 2.18.0 dvbcut-0.7.4/src/muxer.h:69:8: style:inconclusive: Technically the member function 'muxer::isempty' can be const. [functionConst] 2.18.0 dvbcut-0.7.4/src/psfile.cpp:123:5: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] 2.18.0 dvbcut-0.7.4/src/psfile.cpp:129:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/psfile.cpp:145:40: style:inconclusive: Function 'streamreader' argument 1 names different: declaration 's' definition 'sh'. [funcArgNamesDifferent] dvbcut-0.7.4/src/psfile.h:38:41: note: Function 'streamreader' argument 1 names different: declaration 's' definition 'sh'. dvbcut-0.7.4/src/psfile.cpp:145:40: note: Function 'streamreader' argument 1 names different: declaration 's' definition 'sh'. 2.18.0 dvbcut-0.7.4/src/psfile.cpp:161:12: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/psfile.cpp:216:15: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 dvbcut-0.7.4/src/psfile.cpp:223:66: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/psfile.cpp:242:29: style: Parameter 'buf' can be declared as reference to const [constParameterReference] 2.18.0 dvbcut-0.7.4/src/psfile.cpp:252:25: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/psfile.cpp:60:23: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/psfile.h:37:4: style: The destructor '~psfile' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] dvbcut-0.7.4/src/mpgfile.h:60:12: note: Virtual destructor in base class dvbcut-0.7.4/src/psfile.h:37:4: note: Destructor in derived class 2.18.0 dvbcut-0.7.4/src/psfile.h:38:7: style: The function 'streamreader' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] dvbcut-0.7.4/src/mpgfile.h:63:15: note: Virtual function in base class dvbcut-0.7.4/src/psfile.h:38:7: note: Function in derived class 2.18.0 dvbcut-0.7.4/src/psfile.h:40:15: style: The function 'mplayeraudioid' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] dvbcut-0.7.4/src/mpgfile.h:64:15: note: Virtual function in base class dvbcut-0.7.4/src/psfile.h:40:15: note: Function in derived class 2.18.0 dvbcut-0.7.4/src/stream.h:68:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable FF_QP2LAMBDA [valueFlowBailoutIncompleteVar] head dvbcut-0.7.4/src/stream.h:69:0: error: failed to evaluate #if condition, undefined function-like macro invocation: AV_VERSION_INT( ... ) [preprocessorErrorDirective] head dvbcut-0.7.4/src/stream.h:69:2: error: failed to evaluate #if condition, undefined function-like macro invocation: AV_VERSION_INT( ... ) [preprocessorErrorDirective] 2.18.0 dvbcut-0.7.4/src/streamdata.cpp:112:26: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/streamdata.cpp:115:11: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 dvbcut-0.7.4/src/streamdata.cpp:120:38: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 dvbcut-0.7.4/src/streamdata.cpp:144:12: style: Variable 'pts' is assigned a value that is never used. [unreadVariable] 2.18.0 dvbcut-0.7.4/src/streamdata.cpp:144:9: style: The scope of the variable 'pts' can be reduced. [variableScope] 2.18.0 dvbcut-0.7.4/src/streamdata.cpp:181:14: style: Local variable 'data' shadows outer variable [shadowVariable] dvbcut-0.7.4/src/streamdata.h:103:10: note: Shadowed declaration dvbcut-0.7.4/src/streamdata.cpp:181:14: note: Shadow variable 2.18.0 dvbcut-0.7.4/src/streamdata.cpp:181:21: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/streamdata.cpp:213:22: style:inconclusive: Technically the member function 'streamdata::ptsbufferpos' can be const. [functionConst] dvbcut-0.7.4/src/streamdata.h:258:12: note: Technically the member function 'streamdata::ptsbufferpos' can be const. dvbcut-0.7.4/src/streamdata.cpp:213:22: note: Technically the member function 'streamdata::ptsbufferpos' can be const. 2.18.0 dvbcut-0.7.4/src/streamdata.cpp:245:7: style: 'continue' is redundant since it is the last statement in a loop. [redundantContinue] 2.18.0 dvbcut-0.7.4/src/streamdata.cpp:252:22: style:inconclusive: Technically the member function 'streamdata::closestptsbufferpos' can be const. [functionConst] dvbcut-0.7.4/src/streamdata.h:259:12: note: Technically the member function 'streamdata::closestptsbufferpos' can be const. dvbcut-0.7.4/src/streamdata.cpp:252:22: note: Technically the member function 'streamdata::closestptsbufferpos' can be const. 2.18.0 dvbcut-0.7.4/src/streamdata.cpp:297:18: style: Local variable 'data' shadows outer variable [shadowVariable] dvbcut-0.7.4/src/streamdata.h:103:10: note: Shadowed declaration dvbcut-0.7.4/src/streamdata.cpp:297:18: note: Shadow variable 2.18.0 dvbcut-0.7.4/src/streamdata.cpp:297:23: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/streamdata.cpp:302:29: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/streamdata.cpp:307:32: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/streamdata.cpp:47:26: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/streamdata.h:112:3: warning: Member variable 'streamdata::nextfilepos' is not initialized in the constructor. [uninitMemberVar] 2.18.0 dvbcut-0.7.4/src/streamdata.h:198:37: style: Local variable 'it' shadows outer variable [shadowVariable] dvbcut-0.7.4/src/streamdata.h:182:31: note: Shadowed declaration dvbcut-0.7.4/src/streamdata.h:198:37: note: Shadow variable 2.18.0 dvbcut-0.7.4/src/streamdata.h:272:0: style: Consider using std::find_if algorithm instead of a raw loop. [useStlAlgorithm] 2.18.0 dvbcut-0.7.4/src/streamdata.h:60:20: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_NOPTS_VALUE [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/streamdata.h:67:21: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_NOPTS_VALUE [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/streamdata.h:85:14: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_NOPTS_VALUE [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/streamdata.h:90:11: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable AV_NOPTS_VALUE [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/streamhandle.h:33:3: style: Struct 'streamhandle' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:144:23: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:158:29: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:192:30: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:195:31: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:226:15: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:245:29: style: Parameter 'buf' can be declared as reference to const [constParameterReference] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:251:25: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:269:64: performance: Function parameter 'recfile' should be passed by const reference. [passedByValue] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:271:39: style: The scope of the variable 'modulation' can be reduced. [variableScope] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:272:17: style: The scope of the variable 'off' can be reduced. [variableScope] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:277:23: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:277:6: style: Condition 'verbose' is always false [knownConditionTrueFalse] dvbcut-0.7.4/src/tsfile.cpp:272:48: note: Assignment 'verbose=0', assigned value is 0 dvbcut-0.7.4/src/tsfile.cpp:275:18: note: Assuming condition is false dvbcut-0.7.4/src/tsfile.cpp:277:6: note: Condition 'verbose' is always false 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:281:11: style: Condition 'verbose' is always false [knownConditionTrueFalse] dvbcut-0.7.4/src/tsfile.cpp:272:48: note: Assignment 'verbose=0', assigned value is 0 dvbcut-0.7.4/src/tsfile.cpp:275:18: note: Assuming condition is false dvbcut-0.7.4/src/tsfile.cpp:281:11: note: Condition 'verbose' is always false 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:310:19: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:310:19: warning: %d in format string (no. 2) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:310:19: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:325:19: warning: %d in format string (no. 3) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:325:19: warning: %d in format string (no. 4) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:325:19: warning: %d in format string (no. 5) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:325:19: warning: %d in format string (no. 6) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:325:19: warning: %d in format string (no. 7) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:369:35: performance: Function parameter 'recfile' should be passed by const reference. [passedByValue] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:370:7: style: The scope of the variable 'verbose' can be reduced. [variableScope] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:390:59: style: The scope of the variable 'unit' can be reduced. [variableScope] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:399:32: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:40:27: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:41:15: style: The scope of the variable 'model' can be reduced. [variableScope] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:427:9: style:inconclusive: Technically the member function 'tsfile::get_si_table' can be const. [functionConst] dvbcut-0.7.4/src/tsfile.h:109:10: note: Technically the member function 'tsfile::get_si_table' can be const. dvbcut-0.7.4/src/tsfile.cpp:427:9: note: Technically the member function 'tsfile::get_si_table' can be const. 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:428:22: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:433:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:45:13: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:462:30: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:48:3: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:529:22: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:538:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:562:15: debug: valueFlowConditionExpressions bailout: Skipping function due to incomplete variable stderr [valueFlowBailoutIncompleteVar] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:62:22: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:64:25: warning: Potentially invalid type conversion in old-style C cast, clarify/fix with C++ cast [dangerousTypeCast] 2.18.0 dvbcut-0.7.4/src/tsfile.cpp:80:30: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/tsfile.h:122:4: style: The destructor '~tsfile' overrides a destructor in a base class but is not marked with a 'override' specifier. [missingOverride] dvbcut-0.7.4/src/mpgfile.h:60:12: note: Virtual destructor in base class dvbcut-0.7.4/src/tsfile.h:122:4: note: Destructor in derived class 2.18.0 dvbcut-0.7.4/src/tsfile.h:123:7: style: The function 'streamreader' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] dvbcut-0.7.4/src/mpgfile.h:63:15: note: Virtual function in base class dvbcut-0.7.4/src/tsfile.h:123:7: note: Function in derived class 2.18.0 dvbcut-0.7.4/src/tsfile.h:125:15: style: The function 'mplayeraudioid' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] dvbcut-0.7.4/src/mpgfile.h:64:15: note: Virtual function in base class dvbcut-0.7.4/src/tsfile.h:125:15: note: Function in derived class 2.18.0 dvbcut-0.7.4/src/tsfile.h:128:16: style: The function 'istransportstream' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] dvbcut-0.7.4/src/mpgfile.h:65:16: note: Virtual function in base class dvbcut-0.7.4/src/tsfile.h:128:16: note: Function in derived class 2.18.0 dvbcut-0.7.4/src/tsfile.h:131:28: style: The function 'getbookmarks' overrides a function in a base class but is not marked with a 'override' specifier. [missingOverride] dvbcut-0.7.4/src/mpgfile.h:69:28: note: Virtual function in base class dvbcut-0.7.4/src/tsfile.h:131:28: note: Function in derived class 2.18.0 dvbcut-0.7.4/src/tsfile.h:134:11: style: The scope of the variable 'picnr' can be reduced. [variableScope] 2.18.0 dvbcut-0.7.4/src/tsfile.h:141:11: style: The scope of the variable 'picnr' can be reduced. [variableScope] 2.18.0 dvbcut-0.7.4/src/tsfile.h:86:33: style: C-style pointer casting [cstyleCast] 2.18.0 dvbcut-0.7.4/src/types.h:36:3: style: Class 'filepos_t' has a constructor with 1 argument that is not explicit. [noExplicitConstructor] DONE