aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rl2.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-03-22 10:17:16 -0300
committerJames Almer <jamrial@gmail.com>2021-03-23 14:09:27 -0300
commit0be265e9a100adc778c1c3cf52155a6326043b85 (patch)
treea0fafe3e3f650ed22ac09717e4dee75e6d8f3966 /libavformat/rl2.c
parent5996184bea3e7e7b00ddc6256788cd3e59d75913 (diff)
downloadffmpeg-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/rl2.c')
-rw-r--r--libavformat/rl2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/rl2.c b/libavformat/rl2.c
index fa1b38b133..cfde23a945 100644
--- a/libavformat/rl2.c
+++ b/libavformat/rl2.c
@@ -237,9 +237,9 @@ static int rl2_read_packet(AVFormatContext *s,
/** check if there is a valid video or audio entry that can be used */
for(i=0; i<s->nb_streams; i++){
- if(rl2->index_pos[i] < s->streams[i]->internal->nb_index_entries
- && s->streams[i]->internal->index_entries[ rl2->index_pos[i] ].pos < pos){
- sample = &s->streams[i]->internal->index_entries[ rl2->index_pos[i] ];
+ if(rl2->index_pos[i] < s->streams[i]->nb_index_entries
+ && s->streams[i]->index_entries[ rl2->index_pos[i] ].pos < pos){
+ sample = &s->streams[i]->index_entries[ rl2->index_pos[i] ];
pos= sample->pos;
stream_id= i;
}
@@ -283,7 +283,7 @@ static int rl2_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp
return -1;
rl2->index_pos[stream_index] = index;
- timestamp = st->internal->index_entries[index].timestamp;
+ timestamp = st->index_entries[index].timestamp;
for(i=0; i < s->nb_streams; i++){
AVStream *st2 = s->streams[i];