avformat/matroskadec: Check avpriv_new_chapter() for failure
authorJustin Jacobs <jajdorkster@gmail.com>
Thu, 7 Aug 2014 00:04:38 +0000 (20:04 -0400)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 14 Aug 2014 01:26:34 +0000 (03:26 +0200)
commit59d98fc05078b7cb89b871dba84fce01c4e31067
tree428057bbf655ddc080bb4d62fbe6491c5c86e3a6
parent60bfa9154d0084bc8b007b984051a6bb82d9652c
avformat/matroskadec: Check avpriv_new_chapter() for failure

Fixes null pointer dereference

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 87dc8b3af9135f0cfcdf3c0520e3f29e7b0d92c6)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/matroskadec.c