Lines Matching refs:vobsub
721 VobSubDemuxContext *vobsub = s->priv_data; in vobsub_read_close() local
725 ff_subtitles_queue_clean(&vobsub->q[i]); in vobsub_read_close()
726 if (vobsub->sub_ctx) in vobsub_read_close()
727 avformat_close_input(&vobsub->sub_ctx); in vobsub_read_close()
734 VobSubDemuxContext *vobsub = s->priv_data; in vobsub_read_header() local
744 if (!vobsub->sub_name) { in vobsub_read_header()
746 vobsub->sub_name = av_strdup(s->url); in vobsub_read_header()
747 if (!vobsub->sub_name) { in vobsub_read_header()
751 fname_len = strlen(vobsub->sub_name); in vobsub_read_header()
752 ext = vobsub->sub_name - 3 + fname_len; in vobsub_read_header()
759 av_log(s, AV_LOG_VERBOSE, "IDX/SUB: %s -> %s\n", s->url, vobsub->sub_name); in vobsub_read_header()
766 vobsub->sub_ctx = avformat_alloc_context(); in vobsub_read_header()
767 if (!vobsub->sub_ctx) { in vobsub_read_header()
773 if ((ret = ff_copy_whiteblacklists(vobsub->sub_ctx, s)) < 0) in vobsub_read_header()
776 ret = avformat_open_input(&vobsub->sub_ctx, vobsub->sub_name, iformat, NULL); in vobsub_read_header()
778 av_log(s, AV_LOG_ERROR, "Unable to open %s as MPEG subtitles\n", vobsub->sub_name); in vobsub_read_header()
799 if (stream_id >= FF_ARRAY_ELEMS(vobsub->q)) { in vobsub_read_header()
849 sub = ff_subtitles_queue_insert(&vobsub->q[s->nb_streams - 1], "", 0, 0); in vobsub_read_header()
896 vobsub->q[i].sort = SUB_SORT_POS_TS; in vobsub_read_header()
897 vobsub->q[i].keep_duplicates = 1; in vobsub_read_header()
898 ff_subtitles_queue_finalize(s, &vobsub->q[i]); in vobsub_read_header()
922 VobSubDemuxContext *vobsub = s->priv_data; in vobsub_read_packet() local
924 AVIOContext *pb = vobsub->sub_ctx->pb; in vobsub_read_packet()
930 FFDemuxSubtitlesQueue *tmpq = &vobsub->q[i]; in vobsub_read_packet()
943 q = &vobsub->q[sid]; in vobsub_read_packet()
967 ret = mpegps_read_pes_header(vobsub->sub_ctx, NULL, &startcode, &pts, &dts); in vobsub_read_packet()
1001 VobSubDemuxContext *vobsub = s->priv_data; in vobsub_read_seek() local
1017 int r = ff_subtitles_queue_seek(&vobsub->q[i], s, stream_index, in vobsub_read_seek()
1027 return ff_subtitles_queue_seek(&vobsub->q[stream_index], s, stream_index, in vobsub_read_seek()