Lines Matching refs:ba
615 static int get_audio_frame_duration(enum AVCodecID id, int sr, int ch, int ba,
620 int framecount = (ba > 0 && frame_bytes / ba > 0) ? frame_bytes / ba : 1;
669 if (ba > 0) {
672 switch (ba) {
679 switch (ba) {
759 if (ba > 0) {
761 int blocks = frame_bytes / ba;
767 tmp = blocks * (1LL + (ba - 4 * ch) / (bps * ch) * 8);
770 tmp = blocks * (((ba - 16LL) * 2 / 3 * 4) / ch);
773 tmp = blocks * (1 + (ba - 4LL * ch) * 2 / ch);
776 tmp = blocks * ((ba - 4LL * ch) * 2 / ch);
779 tmp = blocks * (2 + (ba - 7LL * ch) * 2LL / ch);
782 tmp = blocks * (ba - 16LL) * 2 / ch;
816 if (bitrate > 0 && frame_bytes > 0 && sr > 0 && ba > 1) {