mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 18:11:11 +01:00
pvf: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
c218144748
commit
0273297405
1 changed files with 2 additions and 2 deletions
|
|
@ -54,11 +54,11 @@ static int pvf_read_header(AVFormatContext *s)
|
|||
return AVERROR(ENOMEM);
|
||||
|
||||
st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
|
||||
st->codecpar->channels = channels;
|
||||
st->codecpar->ch_layout.nb_channels = channels;
|
||||
st->codecpar->sample_rate = sample_rate;
|
||||
st->codecpar->codec_id = ff_get_pcm_codec_id(bps, 0, 1, 0xFFFF);
|
||||
st->codecpar->bits_per_coded_sample = bps;
|
||||
st->codecpar->block_align = bps * st->codecpar->channels / 8;
|
||||
st->codecpar->block_align = bps * st->codecpar->ch_layout.nb_channels / 8;
|
||||
|
||||
avpriv_set_pts_info(st, 64, 1, st->codecpar->sample_rate);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue