smush: convert to new channel layout API

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
release/5.1
Vittorio Giovara 8 years ago committed by James Almer
parent c77897f41d
commit 360fac0045
  1. 3
      libavformat/smush.c

@ -178,8 +178,7 @@ static int smush_read_header(AVFormatContext *ctx)
ast->codecpar->codec_id = AV_CODEC_ID_ADPCM_VIMA;
ast->codecpar->codec_tag = 0;
ast->codecpar->sample_rate = sample_rate;
ast->codecpar->channels = channels;
ast->codecpar->ch_layout.nb_channels = channels;
avpriv_set_pts_info(ast, 64, 1, ast->codecpar->sample_rate);
}

Loading…
Cancel
Save