mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
style: ffmpeg format code
This commit is contained in:
parent
2fc4af11a8
commit
20410f50e7
|
@ -240,14 +240,13 @@ bool DecoderContext::openCodec( QString & errorString )
|
|||
codecContext_->channels, codecContext_->sample_rate, av_get_sample_fmt_name( codecContext_->sample_fmt ) );
|
||||
|
||||
auto layout = codecContext_->channel_layout;
|
||||
if(!layout)
|
||||
if( !layout )
|
||||
{
|
||||
layout=av_get_default_channel_layout( codecContext_->channels );
|
||||
layout = av_get_default_channel_layout( codecContext_->channels );
|
||||
codecContext_->channel_layout = layout;
|
||||
}
|
||||
|
||||
swr_ = swr_alloc_set_opts(
|
||||
NULL,
|
||||
swr_ = swr_alloc_set_opts( NULL,
|
||||
layout,
|
||||
AV_SAMPLE_FMT_S16,
|
||||
44100,
|
||||
|
|
Loading…
Reference in a new issue