62e25e315a3b5e9fa7209093cc8ffc86470b7f65
Caused by change in `AVCodecID` enum. Our `IMB_Ffmpeg_Codec_ID` enum, which was stored in .blend file did match `AVCodecID`. But after change in external library headers it fails to initialize correct codec. Function `MOV_av_codec_id_get()` was added to map these 2 enums and the values are no longer hard coded. Functions, that accepted `int codec_id` argument were modified to accept `IMB_Ffmpeg_Codec_ID` or `AVCodecID` types. Because `codec_id` was still stored as integer in DNA, get/set struct functions were added. This way, compiler always knows what type is used and emit error/warning when incompatible types are used. Unfortunately, there is no way to ensure, that DNA `codec_id` field is not accessed directly in future code other than comment. Pull Request: https://projects.blender.org/blender/blender/pulls/140745
…
Blender
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline—modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.
Project Pages
Development
License
Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different but compatible license.
See blender.org/about/license for details.
Description
Languages
C++
78%
Python
14.9%
C
2.9%
GLSL
1.9%
CMake
1.2%
Other
0.9%
