summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2025-01-22 19:06:17 +0900
committerMichele Calgaro <[email protected]>2025-01-22 21:40:31 +0900
commit34d733475f8f959d9bac4afdfe4cc639c31d0d16 (patch)
tree7af3fd27d3729ca18f8b413b4bf001366bb231a9
parent4fa25f4036d5949d5b2bbd9bd521961834712a87 (diff)
downloadsoundkonverter-34d733475f8f959d9bac4afdfe4cc639c31d0d16.tar.gz
soundkonverter-34d733475f8f959d9bac4afdfe4cc639c31d0d16.zip
Fix FTBFS due to undefined uchar
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 906eb9cec6ac8533ddc86e7d2d26b15356ca0f82)
-rw-r--r--src/metadata/m4a/mp4file.cpp4
-rw-r--r--src/metadata/m4a/mp4isofullbox.cpp4
-rw-r--r--src/metadata/m4a/mp4isofullbox.h2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/metadata/m4a/mp4file.cpp b/src/metadata/m4a/mp4file.cpp
index 165fba0..3f5ac48 100644
--- a/src/metadata/m4a/mp4file.cpp
+++ b/src/metadata/m4a/mp4file.cpp
@@ -131,12 +131,12 @@ uint MP4::File::readSystemsLen()
uint length = 0;
uint nbytes = 0;
ByteVector input;
- uchar tmp_input;
+ unsigned char tmp_input;
do
{
input = readBlock(1);
- tmp_input = static_cast<uchar>(input[0]);
+ tmp_input = static_cast<unsigned char>(input[0]);
nbytes++;
length = (length<<7) | (tmp_input&0x7F);
} while( (tmp_input&0x80) && (nbytes<4) );
diff --git a/src/metadata/m4a/mp4isofullbox.cpp b/src/metadata/m4a/mp4isofullbox.cpp
index b104681..8ab2094 100644
--- a/src/metadata/m4a/mp4isofullbox.cpp
+++ b/src/metadata/m4a/mp4isofullbox.cpp
@@ -27,7 +27,7 @@ using namespace TagLib;
class MP4::Mp4IsoFullBox::Mp4IsoFullBoxPrivate
{
public:
- uchar version;
+ unsigned char version;
uint flags;
}; // Mp4IsoFullBoxPrivate
@@ -55,7 +55,7 @@ void MP4::Mp4IsoFullBox::parsebox()
parse();
}
-uchar MP4::Mp4IsoFullBox::version()
+unsigned char MP4::Mp4IsoFullBox::version()
{
return d->version;
}
diff --git a/src/metadata/m4a/mp4isofullbox.h b/src/metadata/m4a/mp4isofullbox.h
index bc01b61..986785f 100644
--- a/src/metadata/m4a/mp4isofullbox.h
+++ b/src/metadata/m4a/mp4isofullbox.h
@@ -38,7 +38,7 @@ namespace TagLib
virtual ~Mp4IsoFullBox();
//! function to get the version of box
- uchar version();
+ unsigned char version();
//! function to get the flag map
uint flags();