avcodec/mpl2dec: add some memory checks