avcodec/webvttdec: add some memory checks