mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:20:56 +01:00
pmp: convert to new channel layout API
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
5347f2920f
commit
6f243af036
1 changed files with 1 additions and 1 deletions
|
|
@ -119,7 +119,7 @@ static int pmp_header(AVFormatContext *s)
|
|||
return AVERROR(ENOMEM);
|
||||
ast->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
|
||||
ast->codecpar->codec_id = audio_codec_id;
|
||||
ast->codecpar->channels = channels;
|
||||
ast->codecpar->ch_layout.nb_channels = channels;
|
||||
ast->codecpar->sample_rate = srate;
|
||||
avpriv_set_pts_info(ast, 32, 1, srate);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue