Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix example code warnings #139

Merged
merged 3 commits into from
Dec 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions test/mux/test6.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ using namespace std;

unsigned int BIN_FILE_SIZE = 15000;
unsigned int TXT_FILE_SIZE = 3000;
const unsigned int BIN_FRAME_SIZE = 1500;
const unsigned int TXT_FRAME_SIZE = 200;
const std::uint64_t TIMECODE_SCALE = 1000000;

const EbmlElement::ShouldWrite bWriteDefaultValues = EbmlElement::WriteSkipDefault;
Expand All @@ -40,7 +38,7 @@ const EbmlElement::ShouldWrite bWriteDefaultValues = EbmlElement::WriteSkipDefau
The first file is a "binary" file with data scaling from 0x00 to 0xFF repeatedly
The second file is a "text" file with data scaling from 'z' to 'a'
*/
int main(int argc, char **argv)
int main(int /*argc*/, char **/*argv*/)
{
cout << "Creating \"muxed.mkv\"" << endl;

Expand Down
2 changes: 0 additions & 2 deletions test/mux/test8.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ int main(int argc, char **argv)
// SegmentCluster->ClearElement();
std::uint32_t ClusterTimecode;
EbmlCrc32 *pChecksum = NULL;
std::uint32_t SizeInCrc;
std::uint64_t CrcPositionStart = 0;

#ifdef MEMORY_READ // read the Cluster in memory and then extract elements from memory
Expand Down Expand Up @@ -383,7 +382,6 @@ int main(int argc, char **argv)
pChecksum = static_cast<EbmlCrc32*>(ElementLevel2);
pChecksum->ReadData(aStream.I_O());
SegmentCluster->ForceChecksum( pChecksum->GetCrc32() ); // not use later
SizeInCrc = 0;
CrcPositionStart = aStream.I_O().getFilePointer();
}

Expand Down