obs-studio/plugins/obs-ffmpeg
Marvin Scholz 9ef263f81a obs-ffmpeg: Fix AVFrame handling in FFmpeg output
Fix an issue in the way AVFrames were handled in the FFmpeg
encoder plugin, which could lead to tearing in the encoded
video due to data races in the AVFrame and AVBuffer.

This is fixed by calling av_frame_make_writable which ensures
the frame and its associated buffer are writable. If its not,
it will copy the AVFrame, create a new AVBuffer for it and
decrease the refcount of the old AVFrame and AVBuffer.
This way OBS always ends up with a usable buffer to write into
which is not still used by the encoder while avoiding a copy
when unnecessary.
2020-05-06 02:55:52 +02:00
..
data/locale obs-ffmpeg: Add localization for NVENC error messages 2020-04-27 01:22:05 +02:00
external obs-ffmpeg: Move external headers to external dir 2019-06-23 23:54:26 -07:00
ffmpeg-mux libobs, obs-ffmpeg, win-dshow: Fix FFmpeg 4.0 deprecation 2019-07-29 20:34:13 -07:00
CMakeLists.txt Merge pull request #1944 from WizardCM/windows-rc-definition 2020-04-18 18:27:22 -05:00
ffmpeg-encoded-output.c obs-ffmpeg: Fix some incorrect settings for srt output 2020-03-05 00:03:13 +01:00
ffmpeg-encoded-output.h obs-ffmpeg: Add new ffmpeg-encoded-output 2019-11-27 14:40:52 -05:00
jim-nvenc-helpers.c obs-ffmpeg: Add localization for NVENC error messages 2020-04-27 01:22:05 +02:00
jim-nvenc.c obs-ffmpeg: Log why new NVENC might not be used 2020-04-26 23:32:51 +02: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: Use new encoder error handling functions 2020-04-12 17:05:19 +02: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: Fix video warnings 2019-08-30 22:13:11 -07:00
obs-ffmpeg-logging.c obs-ffmpeg: Separate logging code 2019-07-09 10:07:24 -07:00
obs-ffmpeg-mux.c obs-ffmpeg: Add support for pausing 2019-07-07 16:38:22 -07:00
obs-ffmpeg-nvenc.c obs-ffmpeg: Add error message for non-zero GPU 2020-04-27 01:22:34 +02:00
obs-ffmpeg-output.c obs-ffmpeg: Fix AVFrame handling in FFmpeg output 2020-05-06 02:55:52 +02:00
obs-ffmpeg-output.h obs-ffmpeg: Expose ffmpeg_data_init and ffmpeg_data_free methods 2019-11-27 14:40:52 -05:00
obs-ffmpeg-source.c obs-plugins: Check if sources are showing for media hotkeys 2020-04-26 21:57:01 -05:00
obs-ffmpeg-vaapi.c obs-ffmpeg: Enable VAAPI Rate Control 2019-12-11 17:16:29 -05:00
obs-ffmpeg.c obs-ffmpeg: Expose old NVENC on Windows 7 2020-03-27 00:17:49 +01:00