obs-studio/plugins/obs-ffmpeg
Ryan Foster ce734366bc obs-ffmpeg: Respect AVFormatContext and AVOutputFormat constness
AVFormatContext::oformat was made const on April 27, 2021 [1]. If we
respect the constness of AVOutputFormat and do not cast results from
FFmpeg functions to non-const, we cannot modify the results after the
fact. Our choices are either to cast them to non-const (and presumably
have them implicitly casted back to const on later function calls), or
only try to modify the results in versions of FFmpeg where these are not
expected to be const.

Instead of relying on casts, we can set the encoder values in the
ffmpeg_cfg struct, which are later passed to new_stream.

Also modifies deps/media-playback. Removes compiler warnings.
Some avformat functions return const AV(In/Out)putFormat per [1], so
ifdef as needed.

[1]: 56450a0ee4
     lavf 59.0.100 avformat.h
     avformat: Constify the API wrt AV(In|Out)putFormat

     Also constify AVProbeData.
2021-11-23 12:10:25 -05:00
..
data/locale obs-ffmpeg: Add AOM AV1 and SVT-AV1 encoders 2021-10-25 12:24:16 -07:00
external obs-ffmpeg: Move external headers to external dir 2019-06-23 23:54:26 -07:00
ffmpeg-mux obs-ffmpeg: Respect AVFormatContext and AVOutputFormat constness 2021-11-23 12:10:25 -05:00
CMakeLists.txt obs-ffmpeg: Add AOM AV1 and SVT-AV1 encoders 2021-10-25 12:24:16 -07:00
jim-nvenc-helpers.c obs-ffmpeg: Show friendly error for NV_ENC_ERR_INVALID_VERSION 2020-05-24 14:42:14 +02:00
jim-nvenc.c Revert "obs-ffmpeg, obs-qsv11: Disable dynamic bitrate support" 2021-08-23 18:26:37 -07:00
jim-nvenc.h obs-ffmpeg: Use new encoder error handling functions 2020-04-12 17:05:19 +02:00
obs-ffmpeg-audio-encoders.c obs-ffmpeg: Include channel_layout.h 2021-11-21 11:30:02 -05:00
obs-ffmpeg-av1.c UI, libobs, obs-plugins: Fix compiler warnings 2021-11-04 06:25:52 -07:00
obs-ffmpeg-compat.h clang-format: Apply formatting 2019-06-23 23:49:10 -07:00
obs-ffmpeg-config.h.in obs-ffmpeg: Separate logging code 2019-07-09 10:07:24 -07:00
obs-ffmpeg-formats.h obs-ffmpeg: Include avcodec header for AVCodecContext 2021-11-21 11:30:02 -05:00
obs-ffmpeg-hls-mux.c obs-ffmpeg: Add missing int cast 2020-11-04 04:45:07 -08:00
obs-ffmpeg-logging.c obs-ffmpeg: Separate logging code 2019-07-09 10:07:24 -07:00
obs-ffmpeg-mux.c obs-ffmpeg: Fix starting video packet offset in replay-buffer 2021-11-04 14:49:17 -07:00
obs-ffmpeg-mux.h obs-ffmpeg: Add HLS output 2020-10-13 13:54:42 -07:00
obs-ffmpeg-nvenc.c obs-ffmpeg: Include avcodec header for AVCodecContext 2021-11-21 11:30:02 -05:00
obs-ffmpeg-output.c obs-ffmpeg: Respect AVFormatContext and AVOutputFormat constness 2021-11-23 12:10:25 -05:00
obs-ffmpeg-output.h obs-ffmpeg: Include avcodec header for AVCodecContext 2021-11-21 11:30:02 -05:00
obs-ffmpeg-source.c obs-ffmpeg: Add linear alpha setting 2021-06-04 19:04:08 -07:00
obs-ffmpeg-vaapi.c obs-ffmpeg: Translate VAAPI property names 2021-07-31 15:09:29 -07:00
obs-ffmpeg.c obs-ffmpeg: Add AOM AV1 and SVT-AV1 encoders 2021-10-25 12:24:16 -07:00