Revision c70a6a41 libavformat/utils.c

View differences:

libavformat/utils.c
2445 2445
        }else if(st->codec->codec_type == AVMEDIA_TYPE_AUDIO) {
2446 2446
            if(!st->codec->bits_per_coded_sample)
2447 2447
                st->codec->bits_per_coded_sample= av_get_bits_per_sample(st->codec->codec_id);
2448
            // set stream disposition based on audio service type
2449
            switch (st->codec->audio_service_type) {
2450
            case AV_AUDIO_SERVICE_TYPE_EFFECTS:
2451
                st->disposition = AV_DISPOSITION_CLEAN_EFFECTS;    break;
2452
            case AV_AUDIO_SERVICE_TYPE_VISUALLY_IMPAIRED:
2453
                st->disposition = AV_DISPOSITION_VISUAL_IMPAIRED;  break;
2454
            case AV_AUDIO_SERVICE_TYPE_HEARING_IMPAIRED:
2455
                st->disposition = AV_DISPOSITION_HEARING_IMPAIRED; break;
2456
            case AV_AUDIO_SERVICE_TYPE_COMMENTARY:
2457
                st->disposition = AV_DISPOSITION_COMMENT;          break;
2458
            case AV_AUDIO_SERVICE_TYPE_KARAOKE:
2459
                st->disposition = AV_DISPOSITION_KARAOKE;          break;
2460
            }
2448 2461
        }
2449 2462
    }
2450 2463

  

Also available in: Unified diff