Lines Matching defs:sub_ctx
64 AVFormatContext *sub_ctx;
1153 if (!(ast->sub_ctx = avformat_alloc_context()))
1156 ast->sub_ctx->pb = pb;
1158 if (ff_copy_whiteblacklists(ast->sub_ctx, s) < 0)
1161 if (!avformat_open_input(&ast->sub_ctx, "", sub_demuxer, NULL)) {
1162 if (ast->sub_ctx->nb_streams != 1)
1164 ff_read_packet(ast->sub_ctx, ast->sub_pkt);
1165 avcodec_parameters_copy(st->codecpar, ast->sub_ctx->streams[0]->codecpar);
1166 time_base = ast->sub_ctx->streams[0]->time_base;
1176 av_freep(&ast->sub_ctx);
1210 if (ff_read_packet(ast->sub_ctx, ast->sub_pkt) < 0)
1840 if (avformat_seek_file(ast2->sub_ctx, 0, INT64_MIN, ts2, ts2, 0) >= 0 ||
1841 avformat_seek_file(ast2->sub_ctx, 0, ts2, ts2, INT64_MAX, 0) >= 0)
1842 ff_read_packet(ast2->sub_ctx, ast2->sub_pkt);
1915 if (ast2->sub_ctx) {
1942 if (ast2->sub_ctx || sti2->nb_index_entries <= 0)
1975 if (ast->sub_ctx) {
1976 av_freep(&ast->sub_ctx->pb);
1977 avformat_close_input(&ast->sub_ctx);