avcodec: add g732_1 parser

This commit is contained in:
Paul B Mahol
2018-12-18 20:46:13 +01:00
parent d360a79c0a
commit 3601eb0474
4 changed files with 62 additions and 2 deletions

View File

@@ -1599,8 +1599,6 @@ static int get_audio_frame_duration(enum AVCodecID id, int sr, int ch, int ba,
return 256 * (frame_bytes / 64);
if (id == AV_CODEC_ID_RA_144)
return 160 * (frame_bytes / 20);
if (id == AV_CODEC_ID_G723_1)
return 240 * (frame_bytes / 24);
if (bps > 0) {
/* calc from frame_bytes and bits_per_coded_sample */