35 #define OPUS_SEEK_PREROLL_MS 80
36 #define OPUS_HEAD_SIZE 19
79 if (os->
psize < 8 || memcmp(packet,
"OpusTags", 8))
91 unsigned nb_frames = 1;
92 unsigned toc = src[0];
93 unsigned toc_config = toc >> 3;
94 unsigned toc_count = toc & 3;
95 unsigned frame_size = toc_config < 12 ?
FFMAX(480, 960 * (toc_config & 3)) :
96 toc_config < 16 ? 480 << (toc_config & 1) :
97 120 << (toc_config & 3);
101 nb_frames = src[1] & 0x3F;
102 }
else if (toc_count) {
106 return frame_size * nb_frames;
135 last_pkt = next_pkt = next_pkt + os->
psize;
136 for (; seg < os->
nsegs; seg++) {
138 if (os->
segments[seg] < 255 && next_pkt != last_pkt) {
167 "Last packet was truncated to %d due to end trimming.\n",