bink: check vst->index_entries before using it
authorAndreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Wed, 22 Apr 2015 15:08:51 +0000 (17:08 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 22 Apr 2015 18:22:19 +0000 (20:22 +0200)
commit86d00ede4f9acb02690a0615490173648e1d933c
tree602a34e20e957d6f7fbee214c8fabede8fb5f4b1
parent4d98015dcf6562b5822a96f024ac8c94b95203a6
bink: check vst->index_entries before using it

This fixes a NULL pointer dereference if vst->duration is 0.

The problem was introduced in commit 0588acaf.

Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/bink.c