Lines Matching defs:ioc

431 static int amf_get_string(AVIOContext *ioc, char *buffer, int buffsize)
434 int length = avio_rb16(ioc);
436 avio_skip(ioc, length);
440 ret = avio_read(ioc, buffer, length);
451 static int parse_keyframes_index(AVFormatContext *s, AVIOContext *ioc, int64_t max_pos)
459 int64_t initial_pos = avio_tell(ioc);
471 while (avio_tell(ioc) < max_pos - 2 &&
472 amf_get_string(ioc, str_val, sizeof(str_val)) > 0) {
477 if (avio_r8(ioc) != AMF_DATA_TYPE_ARRAY)
480 arraylen = avio_rb32(ioc);
501 for (i = 0; i < arraylen && avio_tell(ioc) < max_pos - 1; i++) {
503 if (avio_r8(ioc) != AMF_DATA_TYPE_NUMBER)
505 d = av_int2double(avio_rb64(ioc));
510 if (avio_feof(ioc))
541 avio_seek(ioc, initial_pos, SEEK_SET);
551 AVIOContext *ioc;
561 ioc = s->pb;
562 if (avio_feof(ioc))
564 amf_type = avio_r8(ioc);
568 num_val = av_int2double(avio_rb64(ioc));
571 num_val = avio_r8(ioc);
574 if (amf_get_string(ioc, str_val, sizeof(str_val)) < 0) {
581 (ioc->seekable & AVIO_SEEKABLE_NORMAL) &&
583 if (parse_keyframes_index(s, ioc, max_pos) < 0)
587 while (avio_tell(ioc) < max_pos - 2 &&
588 amf_get_string(ioc, str_val, sizeof(str_val)) > 0)
592 if (avio_r8(ioc) != AMF_END_OF_OBJECT) {
604 avio_skip(ioc, 4); // skip 32-bit max array index
605 while (avio_tell(ioc) < max_pos - 2 &&
606 amf_get_string(ioc, str_val, sizeof(str_val)) > 0)
612 v = avio_r8(ioc);
623 arraylen = avio_rb32(ioc);
624 for (i = 0; i < arraylen && avio_tell(ioc) < max_pos - 1; i++)
632 date.milliseconds = av_int2double(avio_rb64(ioc));
633 date.timezone = avio_rb16(ioc);
756 AVIOContext *ioc;
763 ioc = s->pb;
766 type = avio_r8(ioc);
768 amf_get_string(ioc, buffer, sizeof(buffer)) < 0)