Commit 3654db79 authored by James Almer's avatar James Almer

moflex: convert to new channel layout API

Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 847e6393
......@@ -233,7 +233,7 @@ static int moflex_read_sync(AVFormatContext *s)
st->codecpar->width = width;
st->codecpar->height = height;
st->codecpar->sample_rate= sample_rate;
st->codecpar->channels = channels;
st->codecpar->ch_layout.nb_channels = channels;
st->priv_data = av_packet_alloc();
if (!st->priv_data)
return AVERROR(ENOMEM);
......
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