Skip to content

Commit

Permalink
Merge pull request #34 from dimhotepus/pvs-studio-fixes
Browse files Browse the repository at this point in the history
Fix issues found by PVS-Studio static analyzer #7
  • Loading branch information
juliusfriedman committed Nov 27, 2023
2 parents 29a26a6 + 8273bb0 commit 07a9fd8
Show file tree
Hide file tree
Showing 245 changed files with 871 additions and 843 deletions.
4 changes: 2 additions & 2 deletions Codecs/Audio/Aac/License.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ Managed Media Aggregation `Media.Codecs.Audio.Aac.dll`

Copyright 2014

Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. http://www.asti-trans.com)
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. https://www.asti-trans.com)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0
https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
2 changes: 1 addition & 1 deletion Codecs/Audio/AudioBuffer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace Media.Codecs.Audio

/// <summary>
/// Defines the logic commonly assoicated with all types of Audio samples.
/// <see href="http://wiki.multimedia.cx/?title=PCM#Frequency_And_Sample_Rate">The Multimedia Wiki</see>
/// <see href="https://wiki.multimedia.cx/?title=PCM#Frequency_And_Sample_Rate">The Multimedia Wiki</see>
/// </summary>
public class AudioBuffer : Media.Codec.MediaBuffer
{
Expand Down
4 changes: 2 additions & 2 deletions Codecs/Audio/AudioCodec.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#region Copyright
/*
This file came from Managed Media Aggregation, You can always find the latest version @ https://net7mma.codeplex.com/
This file came from Managed Media Aggregation, You can always find the latest version @ https://github.com/juliusfriedman/net7mma_core
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. http://www.asti-trans.com)
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. https://www.asti-trans.com)
Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
Expand Down
4 changes: 2 additions & 2 deletions Codecs/Audio/AudioFormat.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#region Copyright
/*
This file came from Managed Media Aggregation, You can always find the latest version @ https://net7mma.codeplex.com/
This file came from Managed Media Aggregation, You can always find the latest version @ https://github.com/juliusfriedman/net7mma_core
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. http://www.asti-trans.com)
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. https://www.asti-trans.com)
Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
Expand Down
4 changes: 2 additions & 2 deletions Codecs/Audio/AudioTransformation.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#region Copyright
/*
This file came from Managed Media Aggregation, You can always find the latest version @ https://net7mma.codeplex.com/
This file came from Managed Media Aggregation, You can always find the latest version @ https://github.com/juliusfriedman/net7mma_core
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. http://www.asti-trans.com)
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. https://www.asti-trans.com)
Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
Expand Down
4 changes: 2 additions & 2 deletions Codecs/Audio/License.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ Managed Media Aggregation `Media.Codecs.Audio.dll`

Copyright 2014

Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. http://www.asti-trans.com)
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. https://www.asti-trans.com)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0
https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
4 changes: 2 additions & 2 deletions Codecs/Audio/WaveFormatId.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#region Copyright
/*
This file came from Managed Media Aggregation, You can always find the latest version @ https://net7mma.codeplex.com/
This file came from Managed Media Aggregation, You can always find the latest version @ https://github.com/juliusfriedman/net7mma_core
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. http://www.asti-trans.com)
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. https://www.asti-trans.com)
Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
Expand Down
4 changes: 2 additions & 2 deletions Codecs/Classes/Transformation.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#region Copyright
/*
This file came from Managed Media Aggregation, You can always find the latest version @ https://net7mma.codeplex.com/
This file came from Managed Media Aggregation, You can always find the latest version @ https://github.com/juliusfriedman/net7mma_core
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. http://www.asti-trans.com)
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. https://www.asti-trans.com)
Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
Expand Down
4 changes: 2 additions & 2 deletions Codecs/DataLayout.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#region Copyright
/*
This file came from Managed Media Aggregation, You can always find the latest version @ https://net7mma.codeplex.com/
This file came from Managed Media Aggregation, You can always find the latest version @ https://github.com/juliusfriedman/net7mma_core
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. http://www.asti-trans.com)
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. https://www.asti-trans.com)
Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
Expand Down
8 changes: 4 additions & 4 deletions Codecs/Image/ColorConversions.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#region Copyright
/*
This file came from Managed Media Aggregation, You can always find the latest version @ https://net7mma.codeplex.com/
This file came from Managed Media Aggregation, You can always find the latest version @ https://github.com/juliusfriedman/net7mma_core
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. http://www.asti-trans.com)
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. https://www.asti-trans.com)
Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
Expand Down Expand Up @@ -187,7 +187,7 @@ internal static unsafe void YUV2RGBManaged(byte[] YUVData, byte[] RGBData, int w
//like this (where Cb = u , Cr = y)
//Y0 Cb Y1 Cr Y2 Cb Y3

/*http://msdn.microsoft.com/en-us/library/ms893078.aspx
/*https://learn.microsoft.com/en-us/previous-versions/windows/embedded/ms893078(v=msdn.10)?redirectedfrom=MSDN
*
* C = Y - 16
D = U - 128
Expand All @@ -197,7 +197,7 @@ internal static unsafe void YUV2RGBManaged(byte[] YUVData, byte[] RGBData, int w
B = clip(( 298 * C + 516 * D + 128) >> 8)
* here are a whole bunch more formats for doing this...
* http://stackoverflow.com/questions/3943779/converting-to-yuv-ycbcr-colour-space-many-versions
* https://stackoverflow.com/questions/3943779/converting-to-yuv-ycbcr-colour-space-many-versions
*/


Expand Down
4 changes: 2 additions & 2 deletions Codecs/Image/ImageCodec.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#region Copyright
/*
This file came from Managed Media Aggregation, You can always find the latest version @ https://net7mma.codeplex.com/
This file came from Managed Media Aggregation, You can always find the latest version @ https://github.com/juliusfriedman/net7mma_core
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. http://www.asti-trans.com)
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. https://www.asti-trans.com)
Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
Expand Down
4 changes: 2 additions & 2 deletions Codecs/Image/ImageTransformation.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#region Copyright
/*
This file came from Managed Media Aggregation, You can always find the latest version @ https://net7mma.codeplex.com/
This file came from Managed Media Aggregation, You can always find the latest version @ https://github.com/juliusfriedman/net7mma_core
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. http://www.asti-trans.com)
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. https://www.asti-trans.com)
Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
Expand Down
4 changes: 2 additions & 2 deletions Codecs/Image/Jpeg/License.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ Managed Media Aggregation `Media.Codecs.Video.Jpeg.dll`

Copyright 2014

Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. http://www.asti-trans.com)
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. https://www.asti-trans.com)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0
https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
4 changes: 2 additions & 2 deletions Codecs/Image/Jpeg/Markers.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#region Copyright
/*
This file came from Managed Media Aggregation, You can always find the latest version @ https://net7mma.codeplex.com/
This file came from Managed Media Aggregation, You can always find the latest version @ https://github.com/juliusfriedman/net7mma_core
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. http://www.asti-trans.com)
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. https://www.asti-trans.com)
Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
Expand Down
4 changes: 2 additions & 2 deletions Codecs/Image/License.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ Managed Media Aggregation `Media.Codecs.Image.dll`

Copyright 2014

Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. http://www.asti-trans.com)
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. https://www.asti-trans.com)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0
https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
4 changes: 2 additions & 2 deletions Codecs/Interfaces/ITransformation.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#region Copyright
/*
This file came from Managed Media Aggregation, You can always find the latest version @ https://net7mma.codeplex.com/
This file came from Managed Media Aggregation, You can always find the latest version @ https://github.com/juliusfriedman/net7mma_core
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. http://www.asti-trans.com)
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. https://www.asti-trans.com)
Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
Expand Down
4 changes: 2 additions & 2 deletions Codecs/License.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ Managed Media Aggregation `Media.Codec.dll`

Copyright 2014

Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. http://www.asti-trans.com)
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. https://www.asti-trans.com)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0
https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
4 changes: 2 additions & 2 deletions Codecs/MediaBuffer.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#region Copyright
/*
This file came from Managed Media Aggregation, You can always find the latest version @ https://net7mma.codeplex.com/
This file came from Managed Media Aggregation, You can always find the latest version @ https://github.com/juliusfriedman/net7mma_core
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. http://www.asti-trans.com)
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. https://www.asti-trans.com)
Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
Expand Down
4 changes: 2 additions & 2 deletions Codecs/MediaComponent.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#region Copyright
/*
This file came from Managed Media Aggregation, You can always find the latest version @ https://net7mma.codeplex.com/
This file came from Managed Media Aggregation, You can always find the latest version @ https://github.com/juliusfriedman/net7mma_core
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. http://www.asti-trans.com)
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. https://www.asti-trans.com)
Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
Expand Down
4 changes: 2 additions & 2 deletions Codecs/MediaFormat.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#region Copyright
/*
This file came from Managed Media Aggregation, You can always find the latest version @ https://net7mma.codeplex.com/
This file came from Managed Media Aggregation, You can always find the latest version @ https://github.com/juliusfriedman/net7mma_core
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. http://www.asti-trans.com)
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. https://www.asti-trans.com)
Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
Expand Down
8 changes: 4 additions & 4 deletions Codecs/Mpeg/AudioDataTransportStream.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file came from Managed Media Aggregation, You can always find the latest version @ https://net7mma.codeplex.com/
This file came from Managed Media Aggregation, You can always find the latest version @ https://github.com/juliusfriedman/net7mma_core
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. http://www.asti-trans.com)
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. https://www.asti-trans.com)
Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
Expand Down Expand Up @@ -43,8 +43,8 @@ public class AudioDataTransportStream : ElementaryStream
{
#region Reference

//http://wiki.multimedia.cx/index.php?title=ADTS
//http://iknowu.duckdns.org/files/public/MP4Maker/MP4Maker.htm
//https://wiki.multimedia.cx/index.php?title=ADTS
//https://github.com/TalAloni/MP4Maker

#endregion

Expand Down
4 changes: 2 additions & 2 deletions Codecs/Mpeg/ElementaryStream.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file came from Managed Media Aggregation, You can always find the latest version @ https://net7mma.codeplex.com/
This file came from Managed Media Aggregation, You can always find the latest version @ https://github.com/juliusfriedman/net7mma_core
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. http://www.asti-trans.com)
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. https://www.asti-trans.com)
Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
Expand Down
4 changes: 2 additions & 2 deletions Codecs/Mpeg/License.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ Managed Media Aggregation `Media.Containers.Mpeg.dll`

Copyright 2014

Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. http://www.asti-trans.com)
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. https://www.asti-trans.com)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0
https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
4 changes: 2 additions & 2 deletions Codecs/Mpeg/PacketizedElementaryStreamReader.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file came from Managed Media Aggregation, You can always find the latest version @ https://net7mma.codeplex.com/
This file came from Managed Media Aggregation, You can always find the latest version @ https://github.com/juliusfriedman/net7mma_core
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. http://www.asti-trans.com)
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. https://www.asti-trans.com)
Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
Expand Down
4 changes: 2 additions & 2 deletions Codecs/Mpeg/ProgramStreamReader.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file came from Managed Media Aggregation, You can always find the latest version @ https://net7mma.codeplex.com/
This file came from Managed Media Aggregation, You can always find the latest version @ https://github.com/juliusfriedman/net7mma_core
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. http://www.asti-trans.com)
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. https://www.asti-trans.com)
Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
Expand Down
2 changes: 1 addition & 1 deletion Codecs/Mpeg/StreamTypes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Media.Containers.Mpeg
/// Describes the various MPEG Stream Types. (ISO13818-2 and compatible)
/// <see href="http://www.mp4ra.org/object.html">MP4REG</see>
/// </summary>
//http://xhelmboyx.tripod.com/formats/mpeg-layout.txt
//https://xhelmboyx.tripod.com/formats/mpeg-layout.txt
public static class StreamTypes
{
public const byte Forbidden = 0x00;
Expand Down
6 changes: 3 additions & 3 deletions Codecs/Mpeg/TransportStreamReader.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file came from Managed Media Aggregation, You can always find the latest version @ https://net7mma.codeplex.com/
This file came from Managed Media Aggregation, You can always find the latest version @ https://github.com/juliusfriedman/net7mma_core
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. http://www.asti-trans.com)
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. https://www.asti-trans.com)
Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
Expand Down Expand Up @@ -53,7 +53,7 @@ public class TransportStreamReader : Media.Container.MediaFileStream, Media.Cont

//http://basemedia.Codeplex.com

//http://iknowu.duckdns.org/files/public/MP4Maker/MP4Maker.htm
//https://github.com/TalAloni/MP4Maker

#endregion

Expand Down
4 changes: 2 additions & 2 deletions Codecs/Mpeg/VideoStream.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
This file came from Managed Media Aggregation, You can always find the latest version @ https://net7mma.codeplex.com/
This file came from Managed Media Aggregation, You can always find the latest version @ https://github.com/juliusfriedman/net7mma_core
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. http://www.asti-trans.com)
Julius.Friedman@gmail.com / (SR. Software Engineer ASTI Transportation Inc. https://www.asti-trans.com)
Permission is hereby granted, free of charge,
* to any person obtaining a copy of this software and associated documentation files (the "Software"),
Expand Down
Loading

0 comments on commit 07a9fd8

Please sign in to comment.