[mythtv-commits] [MythTV/mythtv] 9882ca: Remove initializers TSPacket and TSHeader

kmdewaal noreply at github.com
Fri Jul 8 18:36:40 UTC 2022


  Branch: refs/heads/master
  Home:   https://github.com/MythTV/mythtv
  Commit: 9882cac962c1eb771504c3515e89118552d9fbd3
      https://github.com/MythTV/mythtv/commit/9882cac962c1eb771504c3515e89118552d9fbd3
  Author: Klaas de Waal <klaas at kldo.nl>
  Date:   2022-07-08 (Fri, 08 Jul 2022)

  Changed paths:
    M mythtv/libs/libmythtv/mpeg/tspacket.h

  Log Message:
  -----------
  Remove initializers TSPacket and TSHeader

The initialization was added in commit 8e70b50643611fac80521e6c638aef67dbfabc41 on Jan 10, 2020
to remove warnings from a static code analyzer.
However, the initialization is not needed at all, see comments on lines 52-53 and 61-62, added in
commit 6a4845b04d0f52f9189d08b416c2af2047329db5 on May 1, 2008 and on line 207, added in
commit 4ca584ae1bce9a3a6ddd4e2df27b9a4930c85010 on Jun 21, 2008 by the original author of this code.
Superfluous initializations are not harmful but in this case it can cost a significant amount of processing resources.
For one full transport stream this can be 4 to 5 Mbyte/second that is needlessly initialized.




More information about the mythtv-commits mailing list