Explorar o código

Update getvideothread.cpp

叶海辉 %!s(int64=6) %!d(string=hai) anos
pai
achega
9bb5835b23
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      src/video/getvideothread.cpp

+ 0 - 1
src/video/getvideothread.cpp

@@ -245,7 +245,6 @@ ErroCode GetVideoThread::init(QString videoDevName, bool useVideo, QString audio
             {
                 in_ch_layout = AV_CH_LAYOUT_MONO;
             }
-            in_ch_layout = AV_CH_LAYOUT_STEREO;//av_get_default_channel_layout(aCodecCtx->channels);
         }
 //qDebug()<<"1111:"<<in_sample_fmt<<in_sample_rate<<in_ch_layout<<aCodecCtx->channels<<out_sample_fmt<<out_sample_rate<<out_ch_layout<<audio_tgt_channels;
         swrCtx = swr_alloc_set_opts(nullptr, out_ch_layout, out_sample_fmt, out_sample_rate,