AcademySoftwareFoundation / xstudio

xSTUDIO is a modern, high performance and feature rich playback and review application designed for organisations and individuals in the post production, VFX and Animation industries.
Apache License 2.0
639 stars 83 forks source link

Correct syntax #38

Closed adro79 closed 11 months ago

adro79 commented 1 year ago

Delete the "z" in av_malloc_array, this gave me an error when building in Arch Linux

/home/adro/Applications/AUR/xstudio/src/xstudio/src/plugin/media_metadata/ffprobe/src/ffprobe_lib.cpp:105:35: error: ‘av_mallocz_array’ was not declared in this scope; did you mean ‘av_malloc_array’?
  105 |         result = (AVDictionary **)av_mallocz_array(avfc->nb_streams, sizeof(*result));
      |                                   ^~~~~~~~~~~~~~~~
      |                                   av_malloc_array
tedwaine commented 11 months ago

thanks for spotting this, sorry it took so long to merge! Looks like av_mallocz_array is marked as deprecated in the ffmpeg version we have been using and I presume removed in yours.