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>
Mon, 21 Jan 2019 06:53:26 +0000 (07:53 +0100)
commit73c90818b116e3783e6479172a565cfb9fa36036
tree9a53343ec3588f7ea7b0c61b02d145b570890e0f
parentc22b67feaae9f6b5a9ebbbb84d64ff749f084135
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>
(cherry picked from commit 555f332e7adbd492ca74fa7329c492819b52e2ed)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mov.c