libavformat/mov: Fix NULL-dereference read for some encrypted content.
authorJacob Trimble <modmaker-at-google.com@ffmpeg.org>
Thu, 20 Dec 2018 00:00:22 +0000 (16:00 -0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 20 Dec 2018 22:32:36 +0000 (23:32 +0100)
commit555f332e7adbd492ca74fa7329c492819b52e2ed
tree989eaeef31171bcdd9222c2320717a40b561219a
parent064f9505f49816650516c7afe93e43d8f547891a
libavformat/mov: Fix NULL-dereference read for some encrypted content.

When reading frames, we need to use the fragment for the correct
stream.  Sometimes the "current" fragment is not the same as the one
the frame is for.

Found by Chromium's ClusterFuzz:
https://crbug.com/906392 and https://crbug.com/915524

Signed-off-by: Jacob Trimble <modmaker@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mov.c