diff mbox

[FFmpeg-devel] lavf/mov: fix crash in mov_read_sidx

Message ID 20171124161816.25331-1-jstebbins@jetheaddev.com
State Accepted
Commit bdddcb7b030d075dffa2989222d687106c06d50c
Headers show

Commit Message

John Stebbins Nov. 24, 2017, 4:18 p.m. UTC
Use correct index into streams
---
 libavformat/mov.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Michael Niedermayer Nov. 25, 2017, 12:57 a.m. UTC | #1
On Fri, Nov 24, 2017 at 08:18:16AM -0800, John Stebbins wrote:
> Use correct index into streams
> ---
>  libavformat/mov.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

will apply

thanks

[...]
diff mbox

Patch

diff --git a/libavformat/mov.c b/libavformat/mov.c
index f3e86dfc6d..ddb1e59b85 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -4816,7 +4816,7 @@  static int mov_read_sidx(MOVContext *c, AVIOContext *pb, MOVAtom atom)
                 MOVFragmentStreamInfo * si;
                 si = &item->stream_info[j];
                 if (si->sidx_pts != AV_NOPTS_VALUE) {
-                    ref_st = c->fc->streams[i];
+                    ref_st = c->fc->streams[j];
                     ref_sc = ref_st->priv_data;
                     break;
                 }