summaryrefslogtreecommitdiff
path: root/libavformat/nutenc.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2020-10-09 09:22:36 +0200
committerAnton Khirnov <anton@khirnov.net>2020-10-28 14:59:28 +0100
commitcea7c19cda0ea1630ae1de8c102ab14231b9db10 (patch)
tree9e703af026f15d976d79a0811566043ccb95ec9f /libavformat/nutenc.c
parent7e87288f73242dac6344e65f892569102893fac0 (diff)
downloadffmpeg-cea7c19cda0ea1630ae1de8c102ab14231b9db10.tar.gz
lavf: move AVStream.*index_entries* to AVStreamInternal
Those are private fields, no reason to have them exposed in a public header. Since there are some (semi-)public fields located after these, even though this section is supposed to be private, keep some dummy padding there until the next major bump to preserve ABI compatibility.
Diffstat (limited to 'libavformat/nutenc.c')
-rw-r--r--libavformat/nutenc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c
index 6d3bf6c21e..1dcb2be1b1 100644
--- a/libavformat/nutenc.c
+++ b/libavformat/nutenc.c
@@ -1013,12 +1013,12 @@ static int nut_write_packet(AVFormatContext *s, AVPacket *pkt)
int index = av_index_search_timestamp(st, dts_tb,
AVSEEK_FLAG_BACKWARD);
if (index >= 0) {
- sp_pos = FFMIN(sp_pos, st->index_entries[index].pos);
- if (!nut->write_index && 2*index > st->nb_index_entries) {
- memmove(st->index_entries,
- st->index_entries + index,
- sizeof(*st->index_entries) * (st->nb_index_entries - index));
- st->nb_index_entries -= index;
+ sp_pos = FFMIN(sp_pos, st->internal->index_entries[index].pos);
+ if (!nut->write_index && 2*index > st->internal->nb_index_entries) {
+ memmove(st->internal->index_entries,
+ st->internal->index_entries + index,
+ sizeof(*st->internal->index_entries) * (st->internal->nb_index_entries - index));
+ st->internal->nb_index_entries -= index;
}
}
}