1356
1358
s->fbw_channels == s->out_channels)) {
1364
1367
/* set audio service type based on bitstream mode for AC-3 */
1365
1368
avctx->audio_service_type = s->bitstream_mode;
1366
1369
if (s->bitstream_mode == 0x7 && s->channels > 1)
1367
1370
avctx->audio_service_type = AV_AUDIO_SERVICE_TYPE_KARAOKE;
1371
1373
s->frame.nb_samples = s->num_blocks * 256;
1372
1374
if ((ret = ff_get_buffer(avctx, &s->frame)) < 0) {
1373
1375
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");