Lines Matching defs:ioc
107 static int amf_get_string(ByteIOContext *ioc, char *buffer, int buffsize) {
108 int length = get_be16(ioc);
110 url_fskip(ioc, length);
114 get_buffer(ioc, buffer, length);
123 ByteIOContext *ioc;
129 ioc = s->pb;
131 amf_type = get_byte(ioc);
135 num_val = av_int2dbl(get_be64(ioc)); break;
137 num_val = get_byte(ioc); break;
139 if(amf_get_string(ioc, str_val, sizeof(str_val)) < 0)
145 while(url_ftell(ioc) < max_pos - 2 && (keylen = get_be16(ioc))) {
146 url_fskip(ioc, keylen); //skip key string
150 if(get_byte(ioc) != AMF_END_OF_OBJECT)
159 url_fskip(ioc, 4); //skip 32-bit max array index
160 while(url_ftell(ioc) < max_pos - 2 && amf_get_string(ioc, str_val, sizeof(str_val)) > 0) {
165 if(get_byte(ioc) != AMF_END_OF_OBJECT)
171 arraylen = get_be32(ioc);
172 for(i = 0; i < arraylen && url_ftell(ioc) < max_pos - 1; i++) {
179 url_fskip(ioc, 8 + 2); //timestamp (double) and UTC offset (int16)
210 ByteIOContext *ioc;
216 ioc = s->pb;
219 type = get_byte(ioc);
220 if(type != AMF_DATA_TYPE_STRING || amf_get_string(ioc, buffer, sizeof(buffer)) < 0 || strcmp(buffer, "onMetaData"))