mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-18 13:35:13 +00:00
avformat/avisynth: cosmetics after nb_channels change
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
dc9843d829
commit
765fc3b943
@ -750,10 +750,10 @@ static int avisynth_create_stream_audio(AVFormatContext *s, AVStream *st)
|
|||||||
{
|
{
|
||||||
AviSynthContext *avs = s->priv_data;
|
AviSynthContext *avs = s->priv_data;
|
||||||
|
|
||||||
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
|
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
|
||||||
st->codecpar->sample_rate = avs->vi->audio_samples_per_second;
|
st->codecpar->sample_rate = avs->vi->audio_samples_per_second;
|
||||||
st->codecpar->ch_layout.nb_channels = avs->vi->nchannels;
|
st->codecpar->ch_layout.nb_channels = avs->vi->nchannels;
|
||||||
st->duration = avs->vi->num_audio_samples;
|
st->duration = avs->vi->num_audio_samples;
|
||||||
avpriv_set_pts_info(st, 64, 1, avs->vi->audio_samples_per_second);
|
avpriv_set_pts_info(st, 64, 1, avs->vi->audio_samples_per_second);
|
||||||
|
|
||||||
switch (avs->vi->sample_type) {
|
switch (avs->vi->sample_type) {
|
||||||
|
Loading…
Reference in New Issue
Block a user