diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2017-03-31 18:05:19 +0200 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2022-03-15 09:42:35 -0300 |
commit | 57141d73c7005565137f25fe10bcebd58070343b (patch) | |
tree | e761bc0938ef2dfaa3225d9425677008192af33d | |
parent | 6964b59245836b60eeadfbfdac22a68644e590df (diff) | |
download | ffmpeg-57141d73c7005565137f25fe10bcebd58070343b.tar.gz |
paf: convert to new channel layout API
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libavformat/paf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/paf.c b/libavformat/paf.c index 140e0567e1..d48cf57645 100644 --- a/libavformat/paf.c +++ b/libavformat/paf.c @@ -127,8 +127,7 @@ static int read_header(AVFormatContext *s) ast->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; ast->codecpar->codec_tag = 0; ast->codecpar->codec_id = AV_CODEC_ID_PAF_AUDIO; - ast->codecpar->channels = 2; - ast->codecpar->channel_layout = AV_CH_LAYOUT_STEREO; + ast->codecpar->ch_layout = (AVChannelLayout)AV_CHANNEL_LAYOUT_STEREO; ast->codecpar->sample_rate = 22050; avpriv_set_pts_info(ast, 64, 1, 22050); |