Lines Matching refs:ctx
110 AVFormatContext *ctx;
205 AVFormatContext *ctx;
276 ff_format_io_close(c->ctx, &pls->input);
278 ff_format_io_close(c->ctx, &pls->input_next);
280 if (pls->ctx) {
281 pls->ctx->pb = NULL;
282 avformat_close_input(&pls->ctx);
504 av_log(c->ctx, AV_LOG_WARNING, "Can't support the type: %s\n", info->type);
510 av_log(c->ctx, AV_LOG_ERROR, "The URI tag is REQUIRED for subtitle.\n");
515 if (c->ctx->strict_std_compliance > FF_COMPLIANCE_EXPERIMENTAL)
517 av_log(c->ctx, AV_LOG_WARNING, "Can't support the subtitle(uri: %s)\n", info->uri);
691 ret = open_url_keepalive(c->ctx, pb, url, &tmp);
751 ret = open_url_keepalive(c->ctx, &c->playlist_pb, url, NULL);
756 av_log(c->ctx, AV_LOG_WARNING,
770 ret = c->ctx->io_open(c->ctx, &in, url, AVIO_FLAG_READ, &opts);
845 av_log(c->ctx, AV_LOG_DEBUG, "MEDIA-SEQUENCE higher than "
907 av_log(c->ctx, AV_LOG_WARNING, "#EXT-X-START value is"
923 av_log(c->ctx, AV_LOG_INFO, "Skip ('%s')\n", line);
985 av_log(c->ctx, AV_LOG_WARNING, "Cannot get correct #EXTINF value of segment %s,"
1016 av_log(c->ctx, AV_LOG_DEBUG, "Media sequence change (%"PRId64" -> %"PRId64")"
1021 av_log(c->ctx, AV_LOG_WARNING, "Media sequence changed unexpectedly: %"PRId64" -> %"PRId64"\n",
1033 ff_format_io_close(c->ctx, &in);
1034 c->ctx->ctx_flags = c->ctx->ctx_flags & ~(unsigned)AVFMTCTX_UNSEEKABLE;
1038 c->ctx->ctx_flags |= AVFMTCTX_UNSEEKABLE;
1117 if (apic && (pls->ctx->nb_streams != 2 || !pls->ctx->streams[1]->attached_pic.data))
1121 int size = pls->ctx->streams[1]->attached_pic.size;
1125 if (memcmp(apic->buf->data, pls->ctx->streams[1]->attached_pic.data, size) != 0)
1140 parse_id3(pls->ctx, pb, &metadata, ×tamp, &pls->audio_setup_info, &apic, &extra_meta);
1153 if (pls->ctx->nb_streams)
1154 ff_id3v2_parse_apic(pls->ctx, extra_meta);
1160 av_dict_copy(&pls->ctx->metadata, metadata, 0);
1430 if (!pls->ctx || !pls->n_main_streams)
1862 while (pls->n_main_streams < pls->ctx->nb_streams) {
1865 AVStream *ist = pls->ctx->streams[ist_idx];
1916 ff_format_io_close(c->ctx, &c->playlist_pb);
1927 c->ctx = s;
2023 if (!(pls->ctx = avformat_alloc_context()))
2047 avformat_free_context(pls->ctx);
2048 pls->ctx = NULL;
2066 avformat_free_context(pls->ctx);
2067 pls->ctx = NULL;
2100 pls->ctx->probesize = s->probesize > 0 ? s->probesize : 1024 * 4;
2101 pls->ctx->max_analyze_duration = s->max_analyze_duration > 0 ? s->max_analyze_duration : 4 * AV_TIME_BASE;
2102 pls->ctx->interrupt_callback = s->interrupt_callback;
2106 /* Free the ctx - it isn't initialized properly at this point,
2111 avformat_free_context(pls->ctx);
2112 pls->ctx = NULL;
2127 avformat_free_context(pls->ctx);
2128 pls->ctx = NULL;
2134 pls->ctx->pb = &pls->pb.pub;
2135 pls->ctx->io_open = nested_io_open;
2136 pls->ctx->flags |= s->flags & ~AVFMT_FLAG_CUSTOM_IO;
2138 if ((ret = ff_copy_whiteblacklists(pls->ctx, s)) < 0)
2143 ret = avformat_open_input(&pls->ctx, pls->segments[0]->url, in_fmt, &options);
2148 if (pls->id3_deferred_extra && pls->ctx->nb_streams == 1) {
2149 ff_id3v2_parse_apic(pls->ctx, pls->id3_deferred_extra);
2150 avformat_queue_attached_pictures(pls->ctx);
2151 ff_id3v2_parse_priv(pls->ctx, pls->id3_deferred_extra);
2166 pls->ctx->nb_streams == 1)
2167 ret = ff_hls_senc_parse_audio_setup_info(pls->ctx->streams[0], &pls->audio_setup_info);
2169 ret = avformat_find_stream_info(pls->ctx, NULL);
2175 pls->has_noheader_flag = !!(pls->ctx->ctx_flags & AVFMTCTX_NOHEADER);
2187 av_dict_copy(&pls->main_streams[0]->metadata, pls->ctx->metadata, 0);
2244 pls->ctx->streams[pls->pkt->stream_index]->time_base,
2258 pls->ctx->streams[pls->pkt->stream_index]->time_base,
2269 return pls->ctx->streams[pls->pkt->stream_index]->time_base;
2298 ret = av_read_frame(pls->ctx, pls->pkt);
2317 if (seg && seg->key_type == KEY_SAMPLE_AES && !strstr(pls->ctx->iformat->name, "mov")) {
2318 enum AVCodecID codec_id = pls->ctx->streams[pls->pkt->stream_index]->codecpar->codec_id;
2379 if (pls->ctx->event_flags & AVFMT_EVENT_FLAG_METADATA_UPDATED) {
2382 av_dict_copy(&st->metadata, pls->ctx->metadata, 0);
2385 pls->ctx->event_flags &= ~AVFMT_EVENT_FLAG_METADATA_UPDATED;
2389 if (pls->has_noheader_flag && !(pls->ctx->ctx_flags & AVFMTCTX_NOHEADER)) {
2396 pls->pkt->stream_index, pls->n_main_streams, pls->ctx->nb_streams);
2401 ist = pls->ctx->streams[pls->pkt->stream_index];
2436 if ((flags & AVSEEK_FLAG_BYTE) || (c->ctx->ctx_flags & AVFMTCTX_UNSEEKABLE))
2494 ff_read_frame_flush(pls->ctx);