summaryrefslogtreecommitdiff
path: root/libavformat/smoothstreamingenc.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-06-05 11:12:03 -0300
committerJames Almer <jamrial@gmail.com>2021-06-09 13:55:25 -0300
commit591b88e6787c4e678237f02a50421d101abd25c2 (patch)
tree129253009d5179d64b706069237bc3f8659e3eea /libavformat/smoothstreamingenc.c
parent39affa5f8e70fb364d197242a8c11703d593f012 (diff)
avformat: move AVStream.{first,cur}_dts to AVStreamInternal
They are private fields, no reason to have them exposed in a public header. Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/smoothstreamingenc.c')
-rw-r--r--libavformat/smoothstreamingenc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/smoothstreamingenc.c b/libavformat/smoothstreamingenc.c
index a18fbd07d9..65ef942367 100644
--- a/libavformat/smoothstreamingenc.c
+++ b/libavformat/smoothstreamingenc.c
@@ -586,11 +586,11 @@ static int ism_write_packet(AVFormatContext *s, AVPacket *pkt)
int64_t end_dts = (c->nb_fragments + 1) * (int64_t) c->min_frag_duration;
int ret;
- if (st->first_dts == AV_NOPTS_VALUE)
- st->first_dts = pkt->dts;
+ if (st->internal->first_dts == AV_NOPTS_VALUE)
+ st->internal->first_dts = pkt->dts;
if ((!c->has_video || st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO) &&
- av_compare_ts(pkt->dts - st->first_dts, st->time_base,
+ av_compare_ts(pkt->dts - st->internal->first_dts, st->time_base,
end_dts, AV_TIME_BASE_Q) >= 0 &&
pkt->flags & AV_PKT_FLAG_KEY && os->packets_written) {