35 #define OPUS_HEAD_SIZE 19
65 memcpy(extradata, packet, os->
psize);
76 if (os->
psize < 8 || memcmp(packet,
"OpusTags", 8))
92 unsigned toc, toc_config, toc_count,
frame_size, nb_frames = 1;
97 toc_config = toc >> 3;
99 frame_size = toc_config < 12 ?
FFMAX(480, 960 * (toc_config & 3)) :
100 toc_config < 16 ? 480 << (toc_config & 1) :
101 120 << (toc_config & 3);
102 if (toc_count == 3) {
105 nb_frames = packet[1] & 0x3F;
106 }
else if (toc_count) {
122 "Last packet must be truncated to %d (unimplemented).\n",