obs-studio/plugins
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
..
coreaudio-encoder Update translations from Crowdin 2018-03-15 09:00:28 +01:00
decklink Update translations from Crowdin 2018-03-15 09:00:28 +01:00
enc-amf@d192c907f1 enc-amf: Version 2.3.3 2018-03-17 19:31:00 +01:00
image-source Update translations from Crowdin 2018-03-15 09:00:28 +01:00
linux-alsa Update translations from Crowdin 2018-03-15 09:00:28 +01:00
linux-capture Merge pull request #1220 from admshao/opengl-color-info 2018-03-15 16:36:31 -07:00
linux-jack Update translations from Crowdin 2018-03-15 09:00:28 +01:00
linux-pulseaudio Update translations from Crowdin 2018-03-15 09:00:28 +01:00
linux-v4l2 Update translations from Crowdin 2018-03-15 09:00:28 +01:00
mac-avcapture Update translations from Crowdin 2018-03-15 09:00:28 +01:00
mac-capture mac-capture: Fix bug where audio device couldn't be changed 2018-03-16 21:13:40 -07:00
mac-syphon Update translations from Crowdin 2018-03-15 09:00:28 +01:00
mac-vth264 Update translations from Crowdin 2018-03-15 09:00:28 +01:00
obs-browser@4611640370 obs-browser: Update to browser source refactor 2018-04-14 03:45:07 -07:00
obs-ffmpeg obs-ffmpeg: fill in more fields on audio frames 2018-04-18 13:13:48 -07:00
obs-filters Update translations from Crowdin 2018-03-15 09:00:28 +01:00
obs-libfdk Update translations from Crowdin 2018-03-15 09:00:28 +01:00
obs-outputs Update translations from Crowdin 2018-03-15 09:00:28 +01:00
obs-qsv11 Update translations from Crowdin 2018-03-15 09:00:28 +01:00
obs-text Update translations from Crowdin 2018-03-15 09:00:28 +01:00
obs-transitions Update translations from Crowdin 2018-03-15 09:00:28 +01:00
obs-vst@b0f046f0ac obs-vst: Add layout to QMacCocoaViewContainer (update submodule) 2018-02-06 20:54:46 -06:00
obs-x264 Update translations from Crowdin 2018-03-15 09:00:28 +01:00
rtmp-services rtmp-services: Update recommended parameters for Nood.tv 2018-03-28 20:43:32 +02:00
text-freetype2 Update translations from Crowdin 2018-03-15 09:00:28 +01:00
vlc-video Update translations from Crowdin 2018-03-15 09:00:28 +01:00
win-capture Update translations from Crowdin 2018-03-15 09:00:28 +01:00
win-dshow Update translations from Crowdin 2018-03-15 09:00:28 +01:00
win-ivcam Fix a number of MSVC warnings 2017-12-06 16:07:23 -08:00
win-mf Update translations from Crowdin 2018-03-15 09:00:28 +01:00
win-wasapi Update translations from Crowdin 2018-03-15 09:00:28 +01:00
CMakeLists.txt enc-amf: Version 2.3.1 2017-12-13 23:14:54 +01:00