Lines Matching defs:max_pos
139 static int parse_keyframes_index(AVFormatContext *s, AVIOContext *ioc, AVStream *vstream, int64_t max_pos) {
160 while (avio_tell(ioc) < max_pos - 2 && amf_get_string(ioc, str_val, sizeof(str_val)) > 0) {
192 for (i = 0; i < arraylen && avio_tell(ioc) < max_pos - 1; i++) {
222 static int amf_parse_object(AVFormatContext *s, AVStream *astream, AVStream *vstream, const char *key, int64_t max_pos, int depth) {
248 max_pos) < 0)
251 while(avio_tell(ioc) < max_pos - 2 && (keylen = avio_rb16(ioc))) {
253 if(amf_parse_object(s, NULL, NULL, NULL, max_pos, depth + 1) < 0)
266 while(avio_tell(ioc) < max_pos - 2 && amf_get_string(ioc, str_val, sizeof(str_val)) > 0) {
268 if(amf_parse_object(s, astream, vstream, str_val, max_pos, depth + 1) < 0)
278 for(i = 0; i < arraylen && avio_tell(ioc) < max_pos - 1; i++) {
279 if(amf_parse_object(s, NULL, NULL, NULL, max_pos, depth + 1) < 0)