avcodec/asvdec: Check buf_size