53 0xd79e8283acea4620, 0x7a9762f445afd0d8,
54 0x354d60a60b8c79f1, 0x584e1cde00b07aee,
55 0x1573cd93da7df623, 0x47f98d79620dd535
85 av_log(s, level,
"%s: %s\n", name, buf);
100 if (r_val != oc->
r_val) {
101 memset(oc->
r_val, 0, 24);
102 memcpy(oc->
r_val, r_val, len);
104 memcpy(&oc->
r_val[16], r_val, 8);
107 if (n_val != oc->
n_val) {
108 memset(oc->
n_val, 0, 24);
109 memcpy(oc->
n_val, n_val, len);
111 memcpy(&oc->
n_val[16], n_val, 8);
123 if (!enc_header || !r_val)
141 return memcmp(&enc_header[pos], oc->
sm_val, 8) ? -1 : 0;
148 uint32_t pos, taglen, datalen;
151 if (!enc_header || !n_val)
155 if (!memcmp(&enc_header[pos],
"EKB ", 4))
161 taglen =
AV_RB32(&enc_header[pos + 32]);
162 datalen =
AV_RB32(&enc_header[pos + 36]) >> 4;
164 if (pos + (uint64_t)taglen + (((uint64_t)datalen) << 4) + 44 > size)
170 while (datalen-- > 0) {
192 if (!strcmp(em->
tag,
"GEOB") &&
207 "Invalid GEOB data size: %u\n", geob->
datasize);
226 || OMA_ENC_HEADER_SIZE + 48 > geob->
datasize
231 oc->
rid =
AV_RB32(&gdata[OMA_ENC_HEADER_SIZE + 28]);
234 memcpy(oc->
iv, &header[0x58], 8);
245 rprobe(
s, gdata, oc->r_val) < 0 &&
246 nprobe(
s, gdata, geob->datasize, oc->n_val) < 0) {
252 kset(
s, buf, buf, 16);
253 if (!
rprobe(
s, gdata, oc->r_val) ||
254 !
nprobe(
s, gdata, geob->datasize, oc->n_val))
277 int ret, framesize, jsflag, samplerate;
278 uint32_t codec_params;
291 if (memcmp(buf, ((
const uint8_t[]){
'E',
'A',
'3'}), 3) ||
301 if (eid != -1 && eid != -128 &&
decrypt_init(s, extra_meta, buf) < 0) {
308 codec_params =
AV_RB24(&buf[33]);
327 if (samplerate != 44100)
330 framesize = (codec_params & 0x3FF) * 8;
333 jsflag = (codec_params >> 17) & 1;
349 AV_WL32(&edata[2], samplerate);
359 framesize = ((codec_params & 0x3FF) * 8) + 8;
414 (ret >> 3), oc->
iv, 1);
423 unsigned tag_len = 0;
449 int stream_index, int64_t timestamp,
int flags)
458 if (pos < oc->content_start)
459 memset(oc->
iv, 0, 8);
463 memset(oc->
iv, 0, 8);
481 .extensions =
"oma,omg,aa3",