Lines Matching refs:sub_ctx
61 AVFormatContext *sub_ctx; member
1136 if (!(ast->sub_ctx = avformat_alloc_context())) in read_gab2_sub()
1139 ast->sub_ctx->pb = pb; in read_gab2_sub()
1141 if (ff_copy_whiteblacklists(ast->sub_ctx, s) < 0) in read_gab2_sub()
1144 if (!avformat_open_input(&ast->sub_ctx, "", sub_demuxer, NULL)) { in read_gab2_sub()
1145 if (ast->sub_ctx->nb_streams != 1) in read_gab2_sub()
1147 ff_read_packet(ast->sub_ctx, ast->sub_pkt); in read_gab2_sub()
1148 avcodec_parameters_copy(st->codecpar, ast->sub_ctx->streams[0]->codecpar); in read_gab2_sub()
1149 time_base = ast->sub_ctx->streams[0]->time_base; in read_gab2_sub()
1159 av_freep(&ast->sub_ctx); in read_gab2_sub()
1193 if (ff_read_packet(ast->sub_ctx, ast->sub_pkt) < 0) in get_subtitle_pkt()
1817 if (avformat_seek_file(ast2->sub_ctx, 0, INT64_MIN, ts2, ts2, 0) >= 0 || in seek_subtitle()
1818 avformat_seek_file(ast2->sub_ctx, 0, ts2, ts2, INT64_MAX, 0) >= 0) in seek_subtitle()
1819 ff_read_packet(ast2->sub_ctx, ast2->sub_pkt); in seek_subtitle()
1889 if (ast2->sub_ctx) { in avi_read_seek()
1915 if (ast2->sub_ctx || st2->nb_index_entries <= 0) in avi_read_seek()
1948 if (ast->sub_ctx) { in avi_read_close()
1949 av_freep(&ast->sub_ctx->pb); in avi_read_close()
1950 avformat_close_input(&ast->sub_ctx); in avi_read_close()