obs-studio/plugins/obs-ffmpeg
comex c54cc0bf5b obs-ffmpeg: fill in more fields on audio frames
After you call av_frame_alloc(), ffmpeg expects you to fill in certain
fields on the frame, depending on whether it's an audio or video frame.
obs-ffmpeg did this in the two places where it allocates video frames,
but not where it allocates audio frames.  On my system, using trunk
ffmpeg and the Opus codec, this causes OBS to crash while calling
avcodec_send_frame, ultimately because av_frame_copy fails due to
'dst->format < 0' (as 'format' stays at the default of -1), causing a
null pointer to be added to a buffer queue, which later gets
dereferenced.

Oddly, the fields in question can just be copied directly from
corresponding fields in the AVCodecContext, but I don't see any ffmpeg
API to automatically copy all relevant fields, and all the examples I've
seen do it by hand.  So this patch does the same.
2018-04-18 13:13:48 -07:00
..
data/locale Update translations from Crowdin 2018-03-15 09:00:28 +01:00
ffmpeg-mux libobs: Add surround sound audio support 2017-11-26 03:41:53 -08:00
CMakeLists.txt obs-ffmpeg: Rename obs-ffmpeg-aac.c file 2017-07-31 14:29:50 -07:00
closest-pixel-format.h obs-ffmpeg: Add support for YUV 4:4:4 2015-04-18 00:03:14 -07:00
dynlink_cuda.h obs-ffmpeg: Improve NVENC detection 2018-01-18 01:35:45 -08:00
nvEncodeAPI.h obs-ffmpeg: Improve NVENC detection 2018-01-18 01:35:45 -08:00
obs-ffmpeg-audio-encoders.c obs-ffmpeg: fill in more fields on audio frames 2018-04-18 13:13:48 -07:00
obs-ffmpeg-compat.h libobs: Fix FFmpeg constants 2017-11-16 21:38:37 -08:00
obs-ffmpeg-formats.h libobs: Add Y800 color format support 2016-03-24 03:33:35 -07:00
obs-ffmpeg-mux.c obs-ffmpeg: Do not return last replay path if currently muxing 2018-01-18 08:54:43 -08:00
obs-ffmpeg-nvenc.c obs-ffmpeg: Use correct function with older FFmpeg vers. 2017-12-06 10:10:03 -08:00
obs-ffmpeg-output.c obs-ffmpeg: fill in more fields on audio frames 2018-04-18 13:13:48 -07:00
obs-ffmpeg-source.c obs-ffmpeg: Add speed percentage option 2018-02-15 15:18:13 -08:00
obs-ffmpeg.c obs-ffmpeg: Remove NVENC detection code for now 2018-01-20 05:31:58 -08:00