Lines Matching defs:vobsub
726 VobSubDemuxContext *vobsub = s->priv_data;
730 ff_subtitles_queue_clean(&vobsub->q[i]);
731 avformat_close_input(&vobsub->sub_ctx);
738 VobSubDemuxContext *vobsub = s->priv_data;
748 if (!vobsub->sub_name) {
750 vobsub->sub_name = av_strdup(s->url);
751 if (!vobsub->sub_name) {
755 fname_len = strlen(vobsub->sub_name);
756 ext = vobsub->sub_name - 3 + fname_len;
763 av_log(s, AV_LOG_VERBOSE, "IDX/SUB: %s -> %s\n", s->url, vobsub->sub_name);
770 vobsub->sub_ctx = avformat_alloc_context();
771 if (!vobsub->sub_ctx) {
775 if ((ret = ff_copy_whiteblacklists(vobsub->sub_ctx, s)) < 0)
778 ret = avformat_open_input(&vobsub->sub_ctx, vobsub->sub_name, iformat, NULL);
780 av_log(s, AV_LOG_ERROR, "Unable to open %s as MPEG subtitles\n", vobsub->sub_name);
803 if (stream_id >= FF_ARRAY_ELEMS(vobsub->q)) {
853 sub = ff_subtitles_queue_insert(&vobsub->q[s->nb_streams - 1], "", 0, 0);
900 vobsub->q[i].sort = SUB_SORT_POS_TS;
901 vobsub->q[i].keep_duplicates = 1;
902 ff_subtitles_queue_finalize(s, &vobsub->q[i]);
924 VobSubDemuxContext *vobsub = s->priv_data;
926 AVIOContext *pb = vobsub->sub_ctx->pb;
932 FFDemuxSubtitlesQueue *tmpq = &vobsub->q[i];
945 q = &vobsub->q[sid];
969 ret = mpegps_read_pes_header(vobsub->sub_ctx, NULL, &startcode, &pts, &dts);
1003 VobSubDemuxContext *vobsub = s->priv_data;
1019 int r = ff_subtitles_queue_seek(&vobsub->q[i], s, stream_index,
1029 return ff_subtitles_queue_seek(&vobsub->q[stream_index], s, stream_index,
1039 .class_name = "vobsub",
1046 .name = "vobsub",