diff options
author | James Almer <jamrial@gmail.com> | 2021-03-22 10:17:16 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-03-23 14:09:27 -0300 |
commit | 0be265e9a100adc778c1c3cf52155a6326043b85 (patch) | |
tree | a0fafe3e3f650ed22ac09717e4dee75e6d8f3966 /libavformat/flvdec.c | |
parent | 5996184bea3e7e7b00ddc6256788cd3e59d75913 (diff) | |
download | ffmpeg-0be265e9a100adc778c1c3cf52155a6326043b85.tar.gz |
Revert "lavf: move AVStream.*index_entries* to AVStreamInternal"
This reverts commit cea7c19cda0ea1630ae1de8c102ab14231b9db10.
Until an API is added to make index_entries public in a proper way, keeping
this here is harmless.
Diffstat (limited to 'libavformat/flvdec.c')
-rw-r--r-- | libavformat/flvdec.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index e4b40a195c..576d58295c 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -142,7 +142,7 @@ static void add_keyframes_index(AVFormatContext *s) av_assert0(flv->last_keyframe_stream_index <= s->nb_streams); stream = s->streams[flv->last_keyframe_stream_index]; - if (stream->internal->nb_index_entries == 0) { + if (stream->nb_index_entries == 0) { for (i = 0; i < flv->keyframe_count; i++) { av_log(s, AV_LOG_TRACE, "keyframe filepositions = %"PRId64" times = %"PRId64"\n", flv->keyframe_filepositions[i], flv->keyframe_times[i] * 1000); @@ -844,10 +844,10 @@ static void clear_index_entries(AVFormatContext *s, int64_t pos) AVStream *st = s->streams[i]; /* Remove all index entries that point to >= pos */ out = 0; - for (j = 0; j < st->internal->nb_index_entries; j++) - if (st->internal->index_entries[j].pos < pos) - st->internal->index_entries[out++] = st->internal->index_entries[j]; - st->internal->nb_index_entries = out; + for (j = 0; j < st->nb_index_entries; j++) + if (st->index_entries[j].pos < pos) + st->index_entries[out++] = st->index_entries[j]; + st->nb_index_entries = out; } } |