avformat/mov: Check default_encrypted_sample before use in mov_read_sample_encryption...
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 21 Jul 2018 15:20:44 +0000 (17:20 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 26 Jul 2018 00:42:42 +0000 (02:42 +0200)
commita37c62026991853a17ce9e19ff0cf39b2a2b1974
treeb32541ff93b17bef0ecc57b7d2f34fa89a54dd92
parent8b710ea5e7b8a3c3f60fb867bb104b0ec9ea4e83
avformat/mov: Check default_encrypted_sample before use in mov_read_sample_encryption_info()

Fixes: 2018-0721-sample
Fixes: null pointer dereference

Found-by: Nikita Knyzhov (knnikita@yandex.ru)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mov.c