New cross platform exception handler for libopenshot! Logs basic stacktrace on segmentation fault. This will be a huge help in finding bugs and crashes.

This commit is contained in:
Jonathan Thomas
2016-11-03 02:19:48 -05:00
parent 559d6a0545
commit d79994a780
8 changed files with 428 additions and 2 deletions

View File

@@ -277,7 +277,7 @@ void FFmpegReader::UpdateAudioInfo()
info.acodec = aCodecCtx->codec->name;
info.channels = aCodecCtx->channels;
if (aCodecCtx->channel_layout == 0)
aCodecCtx->channel_layout = av_get_default_channel_layout( aCodecCtx->channels );;
aCodecCtx->channel_layout = av_get_default_channel_layout( aCodecCtx->channels );
info.channel_layout = (ChannelLayout) aCodecCtx->channel_layout;
info.sample_rate = aCodecCtx->sample_rate;
info.audio_bit_rate = aCodecCtx->bit_rate;