cyanreg / cyanrip

Bule-ish CD ripper
GNU Lesser General Public License v2.1
232 stars 10 forks source link

building with GCC in MSYS2/MinGW: assignment of member 'video_codec' in read-only object #26

Closed LigH-de closed 3 years ago

LigH-de commented 3 years ago

logs.zip assembled by media-autobuild suite. Part of cyanrip-git/build-32bit/ab-suite.build.log:

FAILED: src/cyanrip.exe.p/coverart.c.obj 
"gcc.bat" "-Isrc/cyanrip.exe.p" "-Isrc" "-I../src" "-IE:/MABS/local32/opt/cyanffmpeg/include" "-IE:/MABS/local32/include/neon" "-IE:/MABS/local32/include/libxml2" "-IE:/MABS/local32/include" "-fdiagnostics-color=always" "-pipe" "-D_FILE_OFFSET_BITS=64" "-Wall" "-Winvalid-pch" "-std=c99" "-O3" "-D_ISOC11_SOURCE" "-D_XOPEN_SOURCE=700" "-U__STRICT_ANSI__" "-Wundef" "-Wmissing-prototypes" "-Wshadow" "-Wparentheses" "-Wpointer-arith" "-Wno-pointer-sign" "-Werror=implicit-function-declaration" "-municode" "-mthreads" "-mtune=generic" "-O2" "-D_FORTIFY_SOURCE=0" "-D__USE_MINGW_ANSI_STDIO=1" "-pthread" "-DCURL_STATICLIB" "-DLIBXML_STATIC" -MD -MQ src/cyanrip.exe.p/coverart.c.obj -MF "src/cyanrip.exe.p/coverart.c.obj.d" -o src/cyanrip.exe.p/coverart.c.obj "-c" ../src/coverart.c
../src/coverart.c: In function 'crip_save_art':
../src/coverart.c:57:31: error: assignment of member 'video_codec' in read-only object
   57 |     avf->oformat->video_codec = st->codecpar->codec_id;
      |                               ^