Commit 6f243af0 authored by Vittorio Giovara's avatar Vittorio Giovara Committed by James Almer

pmp: convert to new channel layout API

Signed-off-by: 's avatarVittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 5347f292
...@@ -119,7 +119,7 @@ static int pmp_header(AVFormatContext *s) ...@@ -119,7 +119,7 @@ static int pmp_header(AVFormatContext *s)
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
ast->codecpar->codec_type = AVMEDIA_TYPE_AUDIO; ast->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
ast->codecpar->codec_id = audio_codec_id; ast->codecpar->codec_id = audio_codec_id;
ast->codecpar->channels = channels; ast->codecpar->ch_layout.nb_channels = channels;
ast->codecpar->sample_rate = srate; ast->codecpar->sample_rate = srate;
avpriv_set_pts_info(ast, 32, 1, srate); avpriv_set_pts_info(ast, 32, 1, srate);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment