mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
shorten: convert to new channel layout API
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
b7483d02c2
commit
fb722bab3e
@ -428,7 +428,11 @@ static int read_header(ShortenContext *s)
|
||||
s->channels = 0;
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
s->avctx->channels = s->channels;
|
||||
if (s->avctx->ch_layout.nb_channels != s->channels) {
|
||||
av_channel_layout_uninit(&s->avctx->ch_layout);
|
||||
s->avctx->ch_layout.nb_channels = s->channels;
|
||||
s->avctx->ch_layout.order = AV_CHANNEL_ORDER_UNSPEC;
|
||||
}
|
||||
|
||||
/* get blocksize if version > 0 */
|
||||
if (s->version > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user