Lines Matching defs:info

345 static struct variant *new_variant(HLSContext *c, struct variant_info *info,
359 if (info) {
360 var->bandwidth = atoi(info->bandwidth);
361 strcpy(var->audio_group, info->audio);
362 strcpy(var->video_group, info->video);
363 strcpy(var->subtitles_group, info->subtitles);
371 static void handle_variant_args(struct variant_info *info, const char *key,
375 *dest = info->bandwidth;
376 *dest_len = sizeof(info->bandwidth);
378 *dest = info->audio;
379 *dest_len = sizeof(info->audio);
381 *dest = info->video;
382 *dest_len = sizeof(info->video);
384 *dest = info->subtitles;
385 *dest_len = sizeof(info->subtitles);
395 static void handle_key_args(struct key_info *info, const char *key,
399 *dest = info->method;
400 *dest_len = sizeof(info->method);
402 *dest = info->uri;
403 *dest_len = sizeof(info->uri);
405 *dest = info->iv;
406 *dest_len = sizeof(info->iv);
416 struct init_section_info *info,
422 if (!info->uri[0])
429 if (!av_strncasecmp(info->uri, "data:", 5)) {
430 ptr = info->uri;
432 ff_make_absolute_url(tmp_str, sizeof(tmp_str), url_base, info->uri);
444 if (info->byterange[0]) {
445 sec->size = strtoll(info->byterange, NULL, 10);
446 ptr = strchr(info->byterange, '@');
459 static void handle_init_section_args(struct init_section_info *info, const char *key,
463 *dest = info->uri;
464 *dest_len = sizeof(info->uri);
466 *dest = info->byterange;
467 *dest_len = sizeof(info->byterange);
483 static struct rendition *new_rendition(HLSContext *c, struct rendition_info *info,
492 if (!strcmp(info->type, "AUDIO"))
494 else if (!strcmp(info->type, "VIDEO"))
496 else if (!strcmp(info->type, "SUBTITLES"))
498 else if (!strcmp(info->type, "CLOSED-CAPTIONS"))
504 av_log(c->ctx, AV_LOG_WARNING, "Can't support the type: %s\n", info->type);
509 if (type == AVMEDIA_TYPE_SUBTITLE && !info->uri[0]) {
517 av_log(c->ctx, AV_LOG_WARNING, "Can't support the subtitle(uri: %s)\n", info->uri);
528 strcpy(rend->group_id, info->group_id);
529 strcpy(rend->language, info->language);
530 strcpy(rend->name, info->name);
533 if (info->uri[0]) {
534 rend->playlist = new_playlist(c, info->uri, url_base);
540 if (info->assoc_language[0]) {
544 strncpy(rend->language + langlen + 1, info->assoc_language,
549 if (!strcmp(info->defaultr, "YES"))
551 if (!strcmp(info->forced, "YES"))
554 chr_ptr = info->characteristics;
567 static void handle_rendition_args(struct rendition_info *info, const char *key,
571 *dest = info->type;
572 *dest_len = sizeof(info->type);
574 *dest = info->uri;
575 *dest_len = sizeof(info->uri);
577 *dest = info->group_id;
578 *dest_len = sizeof(info->group_id);
580 *dest = info->language;
581 *dest_len = sizeof(info->language);
583 *dest = info->assoc_language;
584 *dest_len = sizeof(info->assoc_language);
586 *dest = info->name;
587 *dest_len = sizeof(info->name);
589 *dest = info->defaultr;
590 *dest_len = sizeof(info->defaultr);
592 *dest = info->forced;
593 *dest_len = sizeof(info->forced);
595 *dest = info->characteristics;
596 *dest_len = sizeof(info->characteristics);
808 struct key_info info = {{0}};
810 &info);
813 if (!strcmp(info.method, "AES-128"))
815 if (!strcmp(info.method, "SAMPLE-AES"))
817 if (!av_strncasecmp(info.iv, "0x", 2)) {
818 ff_hex_to_data(iv, info.iv + 2);
821 av_strlcpy(key, info.uri, sizeof(key));
823 struct rendition_info info = {{0}};
825 &info);
826 new_rendition(c, &info, url);
859 struct init_section_info info = {{0}};
864 &info);
865 cur_init_section = new_init_section(pls, &info, url);