mirror of https://git.ffmpeg.org/ffmpeg.git
dshow: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
279876c354
commit
daf329fc38
|
@ -1632,7 +1632,7 @@ dshow_add_device(AVFormatContext *avctx,
|
||||||
par->format = sample_fmt_bits_per_sample(fmt_info->sample_size);
|
par->format = sample_fmt_bits_per_sample(fmt_info->sample_size);
|
||||||
par->codec_id = waveform_codec_id(par->format);
|
par->codec_id = waveform_codec_id(par->format);
|
||||||
par->sample_rate = fmt_info->sample_rate;
|
par->sample_rate = fmt_info->sample_rate;
|
||||||
par->channels = fmt_info->channels;
|
par->ch_layout.nb_channels = fmt_info->channels;
|
||||||
}
|
}
|
||||||
|
|
||||||
avpriv_set_pts_info(st, 64, 1, 10000000);
|
avpriv_set_pts_info(st, 64, 1, 10000000);
|
||||||
|
|
Loading…
Reference in New Issue