• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavformat/

Lines Matching defs:wtv

35 #include "wtv.h"
561 WtvContext *wtv = s->priv_data;
562 AVIOContext *pb = wtv->pb;
640 WtvContext *wtv = s->priv_data;
641 AVIOContext *pb = wtv->pb;
762 WtvContext *wtv = s->priv_data;
763 AVIOContext *pb = wtv->pb;
869 wtv->pts = avio_rl64(pb);
871 if (wtv->pts == -1)
872 wtv->pts = AV_NOPTS_VALUE;
874 wtv->last_valid_pts = wtv->pts;
875 if (wtv->epoch == AV_NOPTS_VALUE || wtv->pts < wtv->epoch)
876 wtv->epoch = wtv->pts;
877 if (mode == SEEK_TO_PTS && wtv->pts >= seekts) {
929 WtvContext *wtv = s->priv_data;
936 wtv->epoch =
937 wtv->pts =
938 wtv->last_valid_pts = AV_NOPTS_VALUE;
956 wtv->pb = wtvfile_open(s, root, root_size, ff_timeline_le16);
957 if (!wtv->pb) {
965 avio_seek(wtv->pb, -32, SEEK_CUR);
986 ff_add_index_entry(&wtv->index_entries, &wtv->nb_index_entries, &wtv->index_entries_allocated_size,
991 if (wtv->nb_index_entries) {
1000 for (i = wtv->nb_index_entries - 1; i >= 0; i--) {
1001 AVIndexEntry *e = wtv->index_entries + i;
1009 st->duration = wtv->index_entries[wtv->nb_index_entries - 1].timestamp;
1021 WtvContext *wtv = s->priv_data;
1022 AVIOContext *pb = wtv->pb;
1033 pkt->pts = wtv->pts;
1041 WtvContext *wtv = s->priv_data;
1042 AVIOContext *pb = wtv->pb;
1050 /* timestamp adjustment is required because wtv->pts values are absolute,
1053 if (wtv->epoch != AV_NOPTS_VALUE)
1054 ts_relative -= wtv->epoch;
1056 i = ff_index_search_timestamp(wtv->index_entries, wtv->nb_index_entries, ts_relative, flags);
1058 if (wtv->last_valid_pts == AV_NOPTS_VALUE || ts < wtv->last_valid_pts) {
1061 } else if (st->duration != AV_NOPTS_VALUE && ts_relative > st->duration && wtv->nb_index_entries) {
1062 if (avio_seek(pb, wtv->index_entries[wtv->nb_index_entries - 1].pos, SEEK_SET) < 0)
1069 if (avio_seek(pb, wtv->index_entries[i].pos, SEEK_SET) < 0)
1071 wtv->pts = wtv->index_entries[i].timestamp;
1072 if (wtv->epoch != AV_NOPTS_VALUE)
1073 wtv->pts += wtv->epoch;
1074 wtv->last_valid_pts = wtv->pts;
1080 WtvContext *wtv = s->priv_data;
1081 av_freep(&wtv->index_entries);
1082 wtvfile_close(wtv->pb);
1087 .name = "wtv",