| 547 | } |
| 548 | |
| 549 | int av_get_bits_per_sample(enum AVCodecID codec_id) |
| 550 | { |
| 551 | switch (codec_id) { |
| 552 | case AV_CODEC_ID_DFPWM: |
| 553 | return 1; |
| 554 | case AV_CODEC_ID_ADPCM_SBPRO_2: |
| 555 | case AV_CODEC_ID_G728: |
| 556 | return 2; |
| 557 | case AV_CODEC_ID_ADPCM_SBPRO_3: |
| 558 | return 3; |
| 559 | case AV_CODEC_ID_ADPCM_SBPRO_4: |
| 560 | case AV_CODEC_ID_ADPCM_IMA_WAV: |
| 561 | case AV_CODEC_ID_ADPCM_IMA_XBOX: |
| 562 | case AV_CODEC_ID_ADPCM_IMA_QT: |
| 563 | case AV_CODEC_ID_ADPCM_SWF: |
| 564 | case AV_CODEC_ID_ADPCM_MS: |
| 565 | return 4; |
| 566 | default: |
| 567 | return av_get_exact_bits_per_sample(codec_id); |
| 568 | } |
| 569 | } |
| 570 | |
| 571 | static int get_audio_frame_duration(enum AVCodecID id, int sr, int ch, int ba, |
| 572 | uint32_t tag, int bits_per_coded_sample, int64_t bitrate, |
no test coverage detected