Comments (7)
FYI: I am using -Wno-narrowing
for now.
from mp4v2.
Just FYI, I successfully built mp4v2-2.1.0 with gcc/g++ 10.2 on a Slackware64-current (20210320) install as follows...
$ gzip -dc mp4v2-2.1.0.tar.gz | tar xvf -
$ cd mp4v2-2.1.0
$ CXXFLAGS="-std=gnu++98" ./configure --prefix=/my/favorite/prefix
$ make
(success)
from mp4v2.
@slvr32 Thanks. Unfortunately that's a different problem and we are using that patch already as well.
Adding CXXFLAGS="-std=gnu++98"
as you suggested makes the error worse (error: ‘nullptr’ was not declared in this scope
/identifier ‘nullptr’ is a keyword in C++11 [-Wc++11-compat]
).
from mp4v2.
I edited my original comment a couple of times, but I ended up having success without any patch, and just the details in my current edited comment.
I also qualified the details of my system, since you didn't mention specifics about yours..
from mp4v2.
Thanks for the info. I am building mp4v2 4.1.4 (& packaging) on latest Arch Linux x86_64, with gcc/g++ 10.2.0.
from mp4v2.
util/mp4art.cpp: In member function 'virtual bool mp4v2::util::ArtUtility::utility_option(int, bool&)':
util/mp4art.cpp:380:14: error: narrowing conversion of 'mp4v2::util::ArtUtility::LC_ART_ANY' from 'unsigned int' to 'int' [-Wnarrowing]
380 | case LC_ART_ANY:
| ^~~~~~~~~~
util/mp4art.cpp:384:14: error: narrowing conversion of 'mp4v2::util::ArtUtility::LC_ART_INDEX' from 'unsigned int' to 'int' [-Wnarrowing]
384 | case LC_ART_INDEX:
| ^~~~~~~~~~~~
util/mp4art.cpp:393:14: error: narrowing conversion of 'mp4v2::util::ArtUtility::LC_LIST' from 'unsigned int' to 'int' [-Wnarrowing]
393 | case LC_LIST:
| ^~~~~~~
util/mp4art.cpp:397:14: error: narrowing conversion of 'mp4v2::util::ArtUtility::LC_ADD' from 'unsigned int' to 'int' [-Wnarrowing]
397 | case LC_ADD:
| ^~~~~~
util/mp4art.cpp:404:14: error: narrowing conversion of 'mp4v2::util::ArtUtility::LC_REMOVE' from 'unsigned int' to 'int' [-Wnarrowing]
404 | case LC_REMOVE:
| ^~~~~~~~~
util/mp4art.cpp:408:14: error: narrowing conversion of 'mp4v2::util::ArtUtility::LC_REPLACE' from 'unsigned int' to 'int' [-Wnarrowing]
408 | case LC_REPLACE:
| ^~~~~~~~~~
util/mp4art.cpp:415:14: error: narrowing conversion of 'mp4v2::util::ArtUtility::LC_EXTRACT' from 'unsigned int' to 'int' [-Wnarrowing]
415 | case LC_EXTRACT:
| ^~~~~~~~~~
make: *** [GNUmakefile:1376: util/mp4art.o] Error 1
make: *** Waiting for unfinished jobs....
libtool: compile: g++ -DHAVE_CONFIG_H -I./include -I./include -I. -I. -Wall -Wformat -g -O2 -fvisibility=hidden -c src/atom_chpl.cpp -o src/atom_chpl.o >/dev/null 2>&1
libtool: compile: g++ -DHAVE_CONFIG_H -I./include -I./include -I. -I. -Wall -Wformat -g -O2 -fvisibility=hidden -c src/atom_amr.cpp -o src/atom_amr.o >/dev/null 2>&1
libtool: compile: g++ -DHAVE_CONFIG_H -I./include -I./include -I. -I. -Wall -Wformat -g -O2 -fvisibility=hidden -c src/3gp.cpp -o src/3gp.o >/dev/null 2>&1
libtool: compile: g++ -DHAVE_CONFIG_H -I./include -I./include -I. -I. -Wall -Wformat -g -O2 -fvisibility=hidden -c src/atom_avc1.cpp -o src/atom_avc1.o >/dev/null 2>&1
libtool: compile: g++ -DHAVE_CONFIG_H -I./include -I./include -I. -I. -Wall -Wformat -g -O2 -fvisibility=hidden -c src/atom_ac3.cpp -o src/atom_ac3.o >/dev/null 2>&1
libtool: compile: g++ -DHAVE_CONFIG_H -I./include -I./include -I. -I. -Wall -Wformat -g -O2 -fvisibility=hidden -c src/atom_colr.cpp -o src/atom_colr.o >/dev/null 2>&1
libtool: compile: g++ -DHAVE_CONFIG_H -I./include -I./include -I. -I. -Wall -Wformat -g -O2 -fvisibility=hidden -c src/atom_avcC.cpp -o src/atom_avcC.o >/dev/null 2>&1
root@eaaff158c96c:/docker/mp4v2# gcc --version
gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
from mp4v2.
CXXFLAGS="-std=gnu++98" can solve isue
from mp4v2.
Related Issues (20)
- Project version number incosistency
- Chapter titles can be encoded in UTF-16
- mp4file.exe destroys .mpa/mp4 files.
- MP4TagsSetTVSeason with season set to null doesn't delete tvsn atom
- heap overflow in mp4v2::impl::MP4Integer32Property::Read HOT 4
- files lost or files size was 0Kb HOT 1
- Set duration on the file level
- Unable to determine total duration from chapter.txt
- Can mp4v2 encapsulate h265 HOT 8
- Question about chapter data
- Apple Silicon
- Version 4.1.4/4.1.5 breaks applications written in C (such as cmus) HOT 7
- Documentation files do not exist
- ReadProperties: atom 'avcC' is too small; overrun at property: configurationVersion (src/mp4atom.cpp,399) HOT 2
- Doesn't read chapters defined in moov.udata.chpl HOT 3
- Cannot compile
- About MP4 file power failure problem
- Heap-buffer-overflow src/mp4property.cpp:338:17 in mp4v2::impl::MP4StringProperty::~MP4StringProperty() HOT 1
- Can mp4v2 be used to edit audio files in m4a format?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mp4v2.