avformat/mov: Allow saio/saiz in clear content.
authorJacob Trimble <modmaker@google.com>
Tue, 14 Aug 2018 17:18:55 +0000 (10:18 -0700)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 22 Aug 2018 16:54:23 +0000 (18:54 +0200)
commiteb350ab738e7e2590b26d97c465da1138fe54598
treec5c6042b85ed9c115a1b9d77596c110af424ee14
parent130de9142edd8f0ab2001fbedb839649fed0b9b6
avformat/mov: Allow saio/saiz in clear content.

If there is a saio/saiz in clear content, we shouldn't create the
encryption index if we don't already have one.  Otherwise it will
confuse the cenc_filter.

The changed method is also used for senc atoms, but they should not
appear in clear content.

Found by Chromium's ClusterFuzz: https://crbug.com/873432

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