35 #define OPUS_HEAD_SIZE 19
64 memcpy(extradata, packet, os->
psize);
75 if (os->
psize < 8 || memcmp(packet,
"OpusTags", 8))
92 unsigned toc, toc_config, toc_count,
frame_size, nb_frames = 1;
98 toc_config = toc >> 3;
100 frame_size = toc_config < 12 ?
FFMAX(480, 960 * (toc_config & 3)) :
101 toc_config < 16 ? 480 << (toc_config & 1) :
102 120 << (toc_config & 3);
103 if (toc_count == 3) {
106 nb_frames = packet[1] & 0x3F;
107 }
else if (toc_count) {
125 "Last packet is truncated to %d (because of unimplemented end trim support).\n",
140 .granule_is_start = 1,